fix: Use StatutFacture and TypeFacture enums instead of string literals
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user