diff --git a/.replit b/.replit index ba2f351..a5fae17 100644 --- a/.replit +++ b/.replit @@ -27,6 +27,10 @@ externalPort = 3002 localPort = 41343 externalPort = 3001 +[[ports]] +localPort = 42073 +externalPort = 3003 + [workflows] runButton = "Project" diff --git a/client/src/pages/BLReconciliation.tsx b/client/src/pages/BLReconciliation.tsx index b91ade9..f9e6dce 100644 --- a/client/src/pages/BLReconciliation.tsx +++ b/client/src/pages/BLReconciliation.tsx @@ -52,7 +52,7 @@ export default function BLReconciliation() { const [searchTerm, setSearchTerm] = useState(""); const [selectedDelivery, setSelectedDelivery] = useState(null); const [isModalOpen, setIsModalOpen] = useState(false); - const [hideValidated, setHideValidated] = useState(false); + const [filterStatus, setFilterStatus] = useState<"all" | "validated" | "not_validated">("all"); // État pour le modal d'envoi de facture const [showInvoiceModal, setShowInvoiceModal] = useState(false); @@ -630,7 +630,10 @@ export default function BLReconciliation() { const filterDeliveries = (deliveries: any[]) => { return deliveries.filter((delivery: any) => { // Filtre par statut validé - if (hideValidated && delivery.reconciled) { + if (filterStatus === "validated" && !delivery.reconciled) { + return false; + } + if (filterStatus === "not_validated" && delivery.reconciled) { return false; } @@ -743,6 +746,31 @@ export default function BLReconciliation() { /> +
+ +