From b80c4244415f4ad7e91f351c7fe194362efbe22f Mon Sep 17 00:00:00 2001 From: Matthieu Haineault Date: Tue, 17 Mar 2026 07:52:18 -0400 Subject: [PATCH] fix(csv): removed the hour entries when the value is 0.00 --- src/time-and-attendance/exports/services/csv-builder.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 13806a2..95ac769 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.montant !== 0) ? row.quantite_hre.toFixed(2) : ''; const amount = (typeof row.montant === 'number' && row.montant !== 0) ? row.montant.toFixed(2) : ''; return [ row.compagnie_no,