diff --git a/attached_assets/image_1758445878671.png b/attached_assets/image_1758445878671.png new file mode 100644 index 0000000..a653077 Binary files /dev/null and b/attached_assets/image_1758445878671.png differ diff --git a/client/src/pages/BLReconciliation.tsx b/client/src/pages/BLReconciliation.tsx index b0faf51..7c43089 100644 --- a/client/src/pages/BLReconciliation.tsx +++ b/client/src/pages/BLReconciliation.tsx @@ -628,9 +628,29 @@ export default function BLReconciliation() { // Filtrage des livraisons par recherche et statut de validation const filterDeliveries = (deliveries: any[]) => { + // Debug temporaire pour production + if (deliveries.length > 0 && filterStatus !== "all") { + console.log('🔍 DEBUG Filtre Production:', { + filterStatus, + totalDeliveries: deliveries.length, + firstDelivery: { + id: deliveries[0].id, + reconciled: deliveries[0].reconciled, + type: typeof deliveries[0].reconciled, + rawValue: JSON.stringify(deliveries[0].reconciled) + } + }); + } + return deliveries.filter((delivery: any) => { - // Conversion sĂ»re de reconciled (peut ĂȘtre boolĂ©en ou nombre 0/1) - const isReconciled = delivery.reconciled === true || delivery.reconciled === 1; + // Conversion sĂ»re de reconciled - gestion de tous les cas possibles + // PostgreSQL peut retourner : true/false, 1/0, "t"/"f", "true"/"false" + const isReconciled = + delivery.reconciled === true || + delivery.reconciled === 1 || + delivery.reconciled === "t" || + delivery.reconciled === "true" || + (typeof delivery.reconciled === 'string' && delivery.reconciled.toLowerCase() === 'true'); // Filtre par statut validĂ© if (filterStatus === "validated" && !isReconciled) {