From 7517745505c69bafe3805e4030f38ad9c4c05b40 Mon Sep 17 00:00:00 2001 From: dahoud Date: Mon, 13 Oct 2025 09:52:21 +0000 Subject: [PATCH] fix: Convert Date to string for all remaining date fields in stock pages --- app/(main)/stock/commandes/page.tsx | 10 +++++----- app/(main)/stock/inventaire/page.tsx | 10 +++++----- app/(main)/stock/sorties/page.tsx | 10 +++++----- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/app/(main)/stock/commandes/page.tsx b/app/(main)/stock/commandes/page.tsx index 070bd95..7dd270a 100644 --- a/app/(main)/stock/commandes/page.tsx +++ b/app/(main)/stock/commandes/page.tsx @@ -644,11 +644,11 @@ const CommandesPage = () => {
- setOrder({...order, dateCommande: e.value || new Date()})} - showIcon + setOrder({...order, dateCommande: e.value?.toISOString() || new Date().toISOString()})} + showIcon />
diff --git a/app/(main)/stock/inventaire/page.tsx b/app/(main)/stock/inventaire/page.tsx index f22b580..ece7118 100644 --- a/app/(main)/stock/inventaire/page.tsx +++ b/app/(main)/stock/inventaire/page.tsx @@ -590,11 +590,11 @@ const InventairePage = () => {
- setNewSession({...newSession, dateDebut: e.value || new Date()})} - showIcon + setNewSession({...newSession, dateDebut: e.value?.toISOString() || new Date().toISOString()})} + showIcon />
diff --git a/app/(main)/stock/sorties/page.tsx b/app/(main)/stock/sorties/page.tsx index b1aebb0..71a1a1d 100644 --- a/app/(main)/stock/sorties/page.tsx +++ b/app/(main)/stock/sorties/page.tsx @@ -792,11 +792,11 @@ const SortiesPage = () => {
- setExit({...exit, dateSortie: e.value || new Date()})} - showIcon + setExit({...exit, dateSortie: e.value?.toISOString() || new Date().toISOString()})} + showIcon />