From 1b885e411488dae2cbe7fb072329b5d2b7b29200 Mon Sep 17 00:00:00 2001 From: Patrick Fic <> Date: Wed, 13 Oct 2021 21:22:38 -0700 Subject: [PATCH] IO-256 Add description to receivables export. --- server/accounting/qb-receivables-lines.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/accounting/qb-receivables-lines.js b/server/accounting/qb-receivables-lines.js index 909473f13..5699c4cf2 100644 --- a/server/accounting/qb-receivables-lines.js +++ b/server/accounting/qb-receivables-lines.js @@ -315,8 +315,12 @@ exports.default = function ({ if (qbo) { Object.keys(invoiceLineHash).forEach((key) => { Object.keys(invoiceLineHash[key]).forEach((key2) => { + const account = responsibilityCenters.profits.find( + (p) => p.name === key + ); InvoiceLineAdd.push({ ...invoiceLineHash[key][key2], + ...(account ? { Description: account.accountdesc } : {}), Amount: invoiceLineHash[key][key2].Amount.toFormat(DineroQbFormat), }); });