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), }); });