fix(csv): removed the expense entry of 0.00 when the row is of type hours
This commit is contained in:
parent
f1d67aad8e
commit
3624489c02
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user