IO-1089 IO-1083

This commit is contained in:
Patrick Fic
2021-05-12 14:24:32 -07:00
parent 8dafdba4f8
commit 967cc2932a
2 changed files with 8 additions and 4 deletions

View File

@@ -103,7 +103,9 @@ const generateBillLine = (billLine, responsibilityCenters, jobClass) => {
},
Amount: Dinero({
amount: Math.round(billLine.actual_cost * 100),
}).toFormat(DineroQbFormat),
})
.multiply(billLine.quantity || 1)
.toFormat(DineroQbFormat),
...(jobClass ? { ClassRef: { FullName: jobClass } } : {}),
SalesTaxCodeRef: {
FullName: findTaxCode(billLine, responsibilityCenters.sales_tax_codes),