From 4a25c2040b89e85c85b31386fd133330777afc33 Mon Sep 17 00:00:00 2001 From: R0m1k3 Date: Wed, 10 Dec 2025 16:12:57 +0100 Subject: [PATCH 1/2] feat: add mobile customer orders page with order creation and status update functionality --- .../src/pages/mobile/CustomerOrdersPage.tsx | 45 +++++- client/src/pages/mobile/DlcPage.tsx | 18 ++- client/src/pages/mobile/SavPage.tsx | 152 ++++++++++++------ 3 files changed, 165 insertions(+), 50 deletions(-) diff --git a/client/src/pages/mobile/CustomerOrdersPage.tsx b/client/src/pages/mobile/CustomerOrdersPage.tsx index 7b77be5..6d480e5 100644 --- a/client/src/pages/mobile/CustomerOrdersPage.tsx +++ b/client/src/pages/mobile/CustomerOrdersPage.tsx @@ -58,6 +58,7 @@ import { SelectValue, } from "@/components/ui/select"; import { Textarea } from "@/components/ui/textarea"; +import { Checkbox } from "@/components/ui/checkbox"; // Schema for form validation const customerOrderFormSchema = z.object({ @@ -177,8 +178,8 @@ export default function MobileCustomerOrdersPage() { productDesignation: data.productName, status: "En attente de Commande", groupId, - isPromotionalPrice: false, - customerNotified: false + isPromotionalPrice: data.isPromotionalPrice, + customerNotified: data.customerNotified }; createMutation.mutate(submitData); @@ -422,6 +423,46 @@ export default function MobileCustomerOrdersPage() { /> + ( + + + + +
+ + Prix promotionnel / Pub + +
+
+ )} + /> + + ( + + + + +
+ + Client déjà notifié + +
+
+ )} + /> + + ( + + Notes internes + +