From e650822170b9b8f1b8be01bc2bcdc70c5fcc6544 Mon Sep 17 00:00:00 2001 From: michaelschal <35957947-michaelschal@users.noreply.replit.com> Date: Mon, 8 Sep 2025 18:19:33 +0000 Subject: [PATCH] Add invoice verification feature for user task management MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update Avoir and Group interfaces to include Nocodb fields. Implement invoice verification functionality on the Avoirs page, adding a "Vérifier tous" button and individual verification status indicators for each avoir with an invoice reference. 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/ECMHcEr --- client/src/pages/Avoirs.tsx | 61 +++++++++++++++++++++++++++++++++---- 1 file changed, 55 insertions(+), 6 deletions(-) diff --git a/client/src/pages/Avoirs.tsx b/client/src/pages/Avoirs.tsx index da27be0..62fe7b9 100644 --- a/client/src/pages/Avoirs.tsx +++ b/client/src/pages/Avoirs.tsx @@ -47,6 +47,8 @@ interface Avoir { id: number; name: string; color: string; + nocodbTableName?: string; + nocodbConfigId?: number; }; creator: { id: string; @@ -65,6 +67,8 @@ interface Group { id: number; name: string; color: string; + nocodbTableName?: string; + nocodbConfigId?: number; } // Schema for form validation @@ -646,13 +650,30 @@ export default function Avoirs() {

- - - - + )} + + + + + + + + + Créer un nouvel avoir @@ -887,6 +908,9 @@ export default function Avoirs() { Créé le + + Vérification + Actions @@ -947,6 +971,31 @@ export default function Avoirs() { + + {avoir.invoiceReference?.trim() ? ( +
+ {verifyingAvoirs.has(avoir.id) ? ( + + ) : avoirVerificationResults[avoir.id] ? ( + avoirVerificationResults[avoir.id].exists ? ( + + ) : ( + + ) + ) : ( + + )} +
+ ) : ( + Sans réf. + )} +
{/* 📋 Icône Upload pour avoirs "Reçu" */}