diff --git a/client/src/pages/mobile/AvoirsPage.tsx b/client/src/pages/mobile/AvoirsPage.tsx index 9ea2025..b98abb7 100644 --- a/client/src/pages/mobile/AvoirsPage.tsx +++ b/client/src/pages/mobile/AvoirsPage.tsx @@ -11,6 +11,7 @@ import { Card, CardContent } from "@/components/ui/card"; import { Input } from "@/components/ui/input"; import { Button } from "@/components/ui/button"; import { Badge } from "@/components/ui/badge"; +import { Checkbox } from "@/components/ui/checkbox"; import { FileText, Search, @@ -63,6 +64,7 @@ const avoirSchema = z.object({ invoiceReference: z.string().optional(), amount: z.coerce.number().optional(), comment: z.string().optional(), + commercialProcessed: z.boolean().default(false), status: z.enum(["En attente de demande", "Demandé", "Reçu"]).default("En attente de demande"), }); @@ -132,6 +134,7 @@ export default function MobileAvoirsPage() { invoiceReference: "", amount: 0, comment: "", + commercialProcessed: false, status: "En attente de demande" } }); @@ -148,8 +151,7 @@ export default function MobileAvoirsPage() { createMutation.mutate({ ...data, - groupId, - commercialProcessed: false + groupId }); }; @@ -344,34 +346,45 @@ export default function MobileAvoirsPage() { /> - ( - - Commentaire / Raison - -