From c48b0d7b99791040708a14d3ad5a6a6ea6a2b9f0 Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Tue, 26 Apr 2022 15:56:03 -0700 Subject: [PATCH] IO-1847 Add blank line if no sales lines for QBD export. --- server/accounting/qb-receivables-lines.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/server/accounting/qb-receivables-lines.js b/server/accounting/qb-receivables-lines.js index 80294dfcc..221db1250 100644 --- a/server/accounting/qb-receivables-lines.js +++ b/server/accounting/qb-receivables-lines.js @@ -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; };