IO-256 Add description to receivables export.
This commit is contained in:
@@ -315,8 +315,12 @@ exports.default = function ({
|
|||||||
if (qbo) {
|
if (qbo) {
|
||||||
Object.keys(invoiceLineHash).forEach((key) => {
|
Object.keys(invoiceLineHash).forEach((key) => {
|
||||||
Object.keys(invoiceLineHash[key]).forEach((key2) => {
|
Object.keys(invoiceLineHash[key]).forEach((key2) => {
|
||||||
|
const account = responsibilityCenters.profits.find(
|
||||||
|
(p) => p.name === key
|
||||||
|
);
|
||||||
InvoiceLineAdd.push({
|
InvoiceLineAdd.push({
|
||||||
...invoiceLineHash[key][key2],
|
...invoiceLineHash[key][key2],
|
||||||
|
...(account ? { Description: account.accountdesc } : {}),
|
||||||
Amount: invoiceLineHash[key][key2].Amount.toFormat(DineroQbFormat),
|
Amount: invoiceLineHash[key][key2].Amount.toFormat(DineroQbFormat),
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user