mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-11 17:27:31 +02:00
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
This commit is contained in:
1 parent
152fc2dea1
commit
2f4e3dcbd5
1 file changed
+7
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user