From 2f4e3dcbd583b6f04f858d42d0d1acea746e6b81 Mon Sep 17 00:00:00 2001 From: michaelschal <35957947-michaelschal@users.noreply.replit.com> Date: Mon, 8 Sep 2025 18:28:01 +0000 Subject: [PATCH] Improve task status management and validation workflows Automatically trigger invoice verification after successful upload and introduce a validation workflow with approve/decline buttons for admins. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 9fcf4b21-eb0c-4e53-a567-e2ce4a6ad869 Replit-Commit-Checkpoint-Type: intermediate_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/9fcf4b21-eb0c-4e53-a567-e2ce4a6ad869/F5ROn6G --- client/src/pages/Avoirs.tsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/client/src/pages/Avoirs.tsx b/client/src/pages/Avoirs.tsx index 2327e2c..32d2ff5 100644 --- a/client/src/pages/Avoirs.tsx +++ b/client/src/pages/Avoirs.tsx @@ -577,6 +577,13 @@ export default function Avoirs() { description: "Avoir traité avec succès via le webhook", }); + // Vérification automatique de la facture après envoi réussi + if (selectedAvoirForUpload.invoiceReference?.trim()) { + setTimeout(() => { + handleVerifyAvoirInvoice(selectedAvoirForUpload, true); + }, 1000); // Délai de 1 seconde pour laisser le temps aux données de se synchroniser + } + // Reset des données setSelectedAvoirForUpload(null); setSelectedFile(null);