mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-12 01:37:40 +02:00
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
This commit is contained in:
1 parent
cd600ff43a
commit
20e1276da8
1 file changed
+9
@@ -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
|
||||
|
||||
Reference in new issue
Block a user