From 2b6fb084d3050f9628996664145da4da28661340 Mon Sep 17 00:00:00 2001 From: dahoud Date: Mon, 13 Oct 2025 18:43:23 +0000 Subject: [PATCH] fix: Use StatutFacture and TypeFacture enums instead of string literals --- app/(main)/factures/page.tsx | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/app/(main)/factures/page.tsx b/app/(main)/factures/page.tsx index 6a5103c..59b1db8 100644 --- a/app/(main)/factures/page.tsx +++ b/app/(main)/factures/page.tsx @@ -18,6 +18,7 @@ import { factureService, clientService } from '../../../services/api'; import { formatDate, formatCurrency } from '../../../utils/formatters'; import { ErrorHandler } from '../../../services/errorHandler'; import type { Facture } from '../../../types/btp'; +import { StatutFacture, TypeFacture } from '../../../types/btp'; import { ActionButtonGroup, ViewButton, @@ -46,8 +47,8 @@ const FacturesPage = () => { montantHT: 0, montantTTC: 0, tauxTVA: 20, - statut: 'BROUILLON', - type: 'FACTURE', + statut: StatutFacture.BROUILLON, + type: TypeFacture.FACTURE, actif: true, client: null, chantier: null, @@ -121,8 +122,8 @@ const FacturesPage = () => { montantHT: 0, montantTTC: 0, tauxTVA: 20, - statut: 'BROUILLON', - type: 'FACTURE', + statut: StatutFacture.BROUILLON, + type: TypeFacture.FACTURE, actif: true, client: null, chantier: null, @@ -228,8 +229,8 @@ const FacturesPage = () => { montantHT: 0, montantTTC: 0, tauxTVA: 20, - statut: 'BROUILLON', - type: 'FACTURE', + statut: StatutFacture.BROUILLON, + type: TypeFacture.FACTURE, actif: true, client: null, chantier: null,