fix(csv): removed the expense entry of 0.00 when the row is of type hours

This commit is contained in:
Matthieu Haineault 2026-03-16 07:58:42 -04:00
parent f1d67aad8e
commit 3624489c02

View File

@ -9,7 +9,7 @@ export class CsvGeneratorService {
): Buffer {
const body = rows.map(row => {
const quantity_hours = (typeof row.quantite_hre === 'number') ? row.quantite_hre.toFixed(2) : '';
const amount = (typeof row.montant === 'number') ? row.montant.toFixed(2) : '';
const amount = (typeof row.montant === 'number' && row.montant !== 0) ? row.montant.toFixed(2) : '';
return [
row.compagnie_no,
row.employee_matricule,