IO-1239 Resolve extra lines on glass claim export

This commit is contained in:
Patrick Fic
2021-07-05 10:35:45 -07:00
parent 3391d7d3f4
commit 17dcc2efd8
3 changed files with 62 additions and 2 deletions

View File

@@ -288,7 +288,7 @@ const generateInvoiceQbxml = (
});
// console.log("Done creating hash", JSON.stringify(invoiceLineHash));
if (!hasMapaLine) {
if (!hasMapaLine && jobs_by_pk.job_totals.rates.mapa.total.amount > 0) {
console.log("Adding MAPA Line Manually.");
const mapaAccountName = responsibilityCenters.defaults.profits.MAPA;
@@ -313,7 +313,7 @@ const generateInvoiceQbxml = (
}
}
if (!hasMashLine) {
if (!hasMashLine && jobs_by_pk.job_totals.rates.mash.total.amount > 0) {
console.log("Adding MASH Line Manually.");
const mashAccountName = responsibilityCenters.defaults.profits.MASH;