Resolve rounding for QBO Receivables Multi Payer.
This commit is contained in:
@@ -654,9 +654,9 @@ exports.default = function ({
|
|||||||
if (qbo) {
|
if (qbo) {
|
||||||
InvoiceLineAdd.push({
|
InvoiceLineAdd.push({
|
||||||
DetailType: "SalesItemLineDetail",
|
DetailType: "SalesItemLineDetail",
|
||||||
Amount: Dinero({ amount: (payer.amount || 0) * 100 * -1 }).toFormat(
|
Amount: Dinero({
|
||||||
DineroQbFormat
|
amount: Math.round((payer.amount || 0) * 100) * -1,
|
||||||
),
|
}).toFormat(DineroQbFormat),
|
||||||
SalesItemLineDetail: {
|
SalesItemLineDetail: {
|
||||||
...(jobs_by_pk.class
|
...(jobs_by_pk.class
|
||||||
? { ClassRef: { value: classes[jobs_by_pk.class] } }
|
? { ClassRef: { value: classes[jobs_by_pk.class] } }
|
||||||
@@ -687,9 +687,9 @@ exports.default = function ({
|
|||||||
FullName: responsibilityCenters.qb_multiple_payers?.accountitem,
|
FullName: responsibilityCenters.qb_multiple_payers?.accountitem,
|
||||||
},
|
},
|
||||||
Desc: `${payer.name} Liability`,
|
Desc: `${payer.name} Liability`,
|
||||||
Amount: Dinero({ amount: (payer.amount || 0) * 100 * -1 }).toFormat(
|
Amount: Dinero({
|
||||||
DineroQbFormat
|
amount: Math.round((payer.amount || 0) * 100) * -1,
|
||||||
),
|
}).toFormat(DineroQbFormat),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user