mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-11 17:27:31 +02:00
Update task completion logic to include verification status
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
This commit is contained in:
1 parent
098c6f3807
commit
c93b8738d5
1 file changed
+3
-3
@@ -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[]) => {
|
||||
|
||||
Reference in new issue
Block a user