From ef6303793f2833064cc9943a8ba75cbd5fe8e189 Mon Sep 17 00:00:00 2001 From: michaelschal <35957947-michaelschal@users.noreply.replit.com> Date: Sun, 21 Sep 2025 08:49:06 +0000 Subject: [PATCH] Add filtering options to view reconciliation status Update the reconciliation page to include a new filter allowing users to view all, validated, or non-validated reconciliation statuses, replacing the previous hide validated option. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 1e4433b5-47ab-464c-b663-fea2e53367dd Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/1e4433b5-47ab-464c-b663-fea2e53367dd/zhCtuJP --- .replit | 4 ++++ client/src/pages/BLReconciliation.tsx | 32 +++++++++++++++++++++++++-- 2 files changed, 34 insertions(+), 2 deletions(-) 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() { /> +
+ +