diff --git a/src/time-and-attendance/exports/services/csv-builder.service.ts b/src/time-and-attendance/exports/services/csv-builder.service.ts index 95ac769..e0c8ea9 100644 --- a/src/time-and-attendance/exports/services/csv-builder.service.ts +++ b/src/time-and-attendance/exports/services/csv-builder.service.ts @@ -8,7 +8,7 @@ export class CsvGeneratorService { rows: CsvRow[] ): Buffer { const body = rows.map(row => { - const quantity_hours = (typeof row.quantite_hre === 'number' && row.montant !== 0) ? row.quantite_hre.toFixed(2) : ''; + const quantity_hours = (typeof row.quantite_hre === 'number' && row.quantite_hre !== 0) ? row.quantite_hre.toFixed(2) : ''; const amount = (typeof row.montant === 'number' && row.montant !== 0) ? row.montant.toFixed(2) : ''; return [ row.compagnie_no,