From bcc421c6a7166a5984a2e59f7d50441c2e71fad7 Mon Sep 17 00:00:00 2001 From: Manus Date: Sun, 12 Apr 2026 15:56:17 -0400 Subject: [PATCH] =?UTF-8?q?Checkpoint:=20Toutes=20les=20restrictions=20sur?= =?UTF-8?q?=20les=20cases=20=C3=A0=20cocher=20dans=20Factures=20BAP=20ont?= =?UTF-8?q?=20=C3=A9t=C3=A9=20supprim=C3=A9es=20:=20n'importe=20quelle=20f?= =?UTF-8?q?acture=20peut=20=C3=AAtre=20coch=C3=A9e=20pour=20l'export=20et?= =?UTF-8?q?=20la=20relance=20des=20automatismes,=20sans=20restriction=20de?= =?UTF-8?q?=20score=20ou=20de=20champs=20remplis.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/pages/InvoicesBAP.tsx | 27 ++++++++------------------- 1 file changed, 8 insertions(+), 19 deletions(-) diff --git a/client/src/pages/InvoicesBAP.tsx b/client/src/pages/InvoicesBAP.tsx index 3e528dc..6a3cc6b 100644 --- a/client/src/pages/InvoicesBAP.tsx +++ b/client/src/pages/InvoicesBAP.tsx @@ -314,11 +314,9 @@ export default function InvoicesBAP() { const handleSelectAll = (checked: boolean) => { if (checked) { - // Select only exportable invoices - const exportableIds = (filteredInvoices || []) - .filter(inv => isEligibleForExport(inv)) - .map(inv => inv.id); - setSelectedIds(exportableIds); + // Select ALL invoices (no restriction) + const allIds = (filteredInvoices || []).map(inv => inv.id); + setSelectedIds(allIds); } else { setSelectedIds([]); } @@ -419,8 +417,8 @@ export default function InvoicesBAP() { return invoice && isEligibleForExport(invoice); }); - const allEligibleSelected = (filteredInvoices?.length || 0) > 0 && - (filteredInvoices || []).filter(inv => isEligibleForExport(inv)).every(inv => selectedIds.includes(inv.id)); + const allEligibleSelected = (filteredInvoices?.length || 0) > 0 && + (filteredInvoices || []).every(inv => selectedIds.includes(inv.id)); return ( @@ -567,7 +565,7 @@ export default function InvoicesBAP() { Fournisseur @@ -590,8 +588,7 @@ export default function InvoicesBAP() { handleSelectOne(invoice.id, checked as boolean)} - disabled={!isEligibleForExport(invoice)} - title={!isEligibleForExport(invoice) ? "Facture non exportable (score < 100% ou champs manquants)" : ""} + /> @@ -831,15 +828,7 @@ export default function InvoicesBAP() { - {/* Info message */} - {filteredInvoices && filteredInvoices.some(inv => (inv.qualityScore || 0) < 100) && ( -
-

- Note : Seules les factures avec un score de qualité de 100% peuvent être exportées. - Les factures avec un score inférieur sont grisées et ne peuvent pas être sélectionnées. -

-
- )} + {/* Delete Confirmation Dialog */}