Add filter for validated status in the reconciliation module

Add a new filter option to the reconciliation module to filter by 'validated' status.

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/rQ1f1Q3
This commit is contained in:
michaelschal committed 2025-09-21 08:47:44 +00:00
1 parent 0855a06d11
commit 13903e8cd5
4 files changed
+1071 -459

No files matched your search

-4
View File
@@ -23,10 +23,6 @@ externalPort = 3000
localPort = 38451
externalPort = 3002
[[ports]]
localPort = 40863
externalPort = 3003
[[ports]]
localPort = 41343
externalPort = 3001
+8 -1
View File
@@ -52,6 +52,7 @@ export default function BLReconciliation() {
const [searchTerm, setSearchTerm] = useState("");
const [selectedDelivery, setSelectedDelivery] = useState<any>(null);
const [isModalOpen, setIsModalOpen] = useState(false);
const [hideValidated, setHideValidated] = useState(false);
// État pour le modal d'envoi de facture
const [showInvoiceModal, setShowInvoiceModal] = useState(false);
@@ -625,9 +626,15 @@ export default function BLReconciliation() {
}
};
// Filtrage des livraisons par recherche
// Filtrage des livraisons par recherche et statut de validation
const filterDeliveries = (deliveries: any[]) => {
return deliveries.filter((delivery: any) => {
// Filtre par statut validé
if (hideValidated && delivery.reconciled) {
return false;
}
// Filtre par recherche
const searchLower = searchTerm.toLowerCase();
return (
delivery.supplier?.name?.toLowerCase().includes(searchLower) ||