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,