fix(csv): removed the hour entries when the value is 0.00
This commit is contained in:
parent
2a361cb35c
commit
b80c424441
|
|
@ -8,7 +8,7 @@ export class CsvGeneratorService {
|
||||||
rows: CsvRow[]
|
rows: CsvRow[]
|
||||||
): Buffer {
|
): Buffer {
|
||||||
const body = rows.map(row => {
|
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) : '';
|
const amount = (typeof row.montant === 'number' && row.montant !== 0) ? row.montant.toFixed(2) : '';
|
||||||
return [
|
return [
|
||||||
row.compagnie_no,
|
row.compagnie_no,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user