IO-256 Add description to receivables export.
This commit is contained in:
@@ -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),
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user