From 20e1276da89c068a0d84bbaf8ec19803ebff0816 Mon Sep 17 00:00:00 2001 From: michaelschal <35957947-michaelschal@users.noreply.replit.com> Date: Mon, 3 Nov 2025 17:04:15 +0000 Subject: [PATCH] Add error message for when a bill is not found during reconciliation Update BLReconciliation page to display a destructive toast notification with an error message when the bill is not found, including a default message if result.errorMessage is null or undefined. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 1e4433b5-47ab-464c-b663-fea2e53367dd Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: ffea74b1-4f55-41ad-9874-ea7da36be493 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/1e4433b5-47ab-464c-b663-fea2e53367dd/Tx7N1IN --- client/src/pages/BLReconciliation.tsx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/client/src/pages/BLReconciliation.tsx b/client/src/pages/BLReconciliation.tsx index 5092595..c7f8b62 100644 --- a/client/src/pages/BLReconciliation.tsx +++ b/client/src/pages/BLReconciliation.tsx @@ -100,6 +100,7 @@ export default function BLReconciliation() { // Toast de confirmation avec détails de la vérification if (result.exists) { + // Facture trouvée - afficher les détails // Formater la date d'échéance si présente let dueDateText = ''; if (result.dueDate) { @@ -142,6 +143,14 @@ export default function BLReconciliation() { ), duration: 5000, }); + } else { + // Facture non trouvée - afficher message d'erreur + toast({ + title: "⚠️ Facture non trouvée", + description: result.errorMessage || 'La facture n\'a pas été trouvée dans la base de données', + variant: "destructive", + duration: 5000, + }); } // Auto-remplissage si facture trouvée via BL