From 776324f315e7940c10cdcc0a7a39aef56f0f8aff Mon Sep 17 00:00:00 2001 From: Manus Date: Tue, 14 Apr 2026 08:19:14 -0400 Subject: [PATCH] =?UTF-8?q?Checkpoint:=20Ajout=20du=20filtre=20"=C3=80=20c?= =?UTF-8?q?ompl=C3=A9ter"=20dans=20Factures=20BAP=20:=20affiche=20toutes?= =?UTF-8?q?=20les=20factures=20dont=20le=20bouton=20BAP=20n'est=20pas=20ac?= =?UTF-8?q?tif=20(score=20<=20100%,=20champs=20manquants,=20d=C3=A9j=C3=A0?= =?UTF-8?q?=20export=C3=A9e=20ou=20abonnement).=20Bouton=20ambr=C3=A9=20av?= =?UTF-8?q?ec=20compteur=20dynamique.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/pages/InvoicesBAP.tsx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/client/src/pages/InvoicesBAP.tsx b/client/src/pages/InvoicesBAP.tsx index 221b90b..d15b1c6 100644 --- a/client/src/pages/InvoicesBAP.tsx +++ b/client/src/pages/InvoicesBAP.tsx @@ -349,6 +349,7 @@ export default function InvoicesBAP() { if (statusFilter === "export_error" && inv.exportStatus !== "export_error") return false; if (statusFilter === "bap_validated" && inv.bapValidated !== 1) return false; if (statusFilter === "bap_pending" && inv.bapValidated === 1) return false; + if (statusFilter === "to_complete" && isEligibleForBAPValidation(inv)) return false; } return true; @@ -361,6 +362,7 @@ export default function InvoicesBAP() { export_error: invoices?.filter(inv => inv.exportStatus === "export_error").length || 0, bap_validated: invoices?.filter(inv => inv.bapValidated === 1).length || 0, bap_pending: invoices?.filter(inv => inv.bapValidated !== 1).length || 0, + to_complete: invoices?.filter(inv => !isEligibleForBAPValidation(inv)).length || 0, }; // Old filter logic (to be removed) @@ -665,6 +667,14 @@ export default function InvoicesBAP() { > ⏳ En attente BAP ({statusCounts.bap_pending}) + {/* Table */}