From c93b8738d5291b2695b635e7cfa062d8e49456d0 Mon Sep 17 00:00:00 2001 From: michaelschal <35957947-michaelschal@users.noreply.replit.com> Date: Tue, 9 Sep 2025 11:12:36 +0000 Subject: [PATCH 1/2] Update task completion logic to include verification status MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adjust the filtering logic in the Avoirs page to correctly categorize tasks. Previously, tasks marked as 'Reçu' were considered pending. Now, tasks are only considered completed if they are both 'Reçu' and have passed verification (`nocodbVerified` flag). This ensures that tasks are accurately reflected in their respective pending or completed states. 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/yiEpJFx --- client/src/pages/Avoirs.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/src/pages/Avoirs.tsx b/client/src/pages/Avoirs.tsx index c08d13a..39e9ae2 100644 --- a/client/src/pages/Avoirs.tsx +++ b/client/src/pages/Avoirs.tsx @@ -906,9 +906,9 @@ export default function Avoirs() { } }; - // Séparer les avoirs par statut - const pendingAvoirs = avoirs.filter(avoir => avoir.status !== 'Reçu'); - const completedAvoirs = avoirs.filter(avoir => avoir.status === 'Reçu'); + // Séparer les avoirs par statut : Finalisé = Reçu ET validé + const pendingAvoirs = avoirs.filter(avoir => !(avoir.status === 'Reçu' && avoir.nocodbVerified)); + const completedAvoirs = avoirs.filter(avoir => avoir.status === 'Reçu' && avoir.nocodbVerified); // Filtrage par recherche const filterAvoirs = (avoirsList: Avoir[]) => { From 2c9293cab6e6fbac27cbd6fe135c6300ff63169d Mon Sep 17 00:00:00 2001 From: michaelschal <35957947-michaelschal@users.noreply.replit.com> Date: Tue, 9 Sep 2025 11:14:02 +0000 Subject: [PATCH 2/2] Correctly update task status after validation Fix issue where tasks remained in "in progress" state after receiving and validation, ensuring correct status transition to "completed." Replit-Commit-Author: Agent Replit-Commit-Session-Id: 9fcf4b21-eb0c-4e53-a567-e2ce4a6ad869 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/9fcf4b21-eb0c-4e53-a567-e2ce4a6ad869/yiEpJFx