IO-1847 Add blank line if no sales lines for QBD export.

This commit is contained in:
Patrick Fic
2022-04-26 15:56:03 -07:00
parent 15cdcdfbea
commit c48b0d7b99

View File

@@ -637,6 +637,13 @@ exports.default = function ({
});
}
if (!qbo && InvoiceLineAdd.length === 0) {
//Handle the scenario where there is a $0 sale invoice.
InvoiceLineAdd.push({
Desc: "No estimate lines.",
});
}
return InvoiceLineAdd;
};