QBO USA Changes for tax and non tax items.

This commit is contained in:
Patrick Fic
2023-04-24 13:13:32 -07:00
parent f6be133a78
commit 648e8aaae0
9 changed files with 168 additions and 50 deletions

View File

@@ -124,9 +124,16 @@ const generateBillLine = (billLine, responsibilityCenters, jobClass) => {
.multiply(billLine.quantity || 1)
.toFormat(DineroQbFormat),
...(jobClass ? { ClassRef: { FullName: jobClass } } : {}),
SalesTaxCodeRef: {
FullName: findTaxCode(billLine, responsibilityCenters.sales_tax_codes),
},
...(process.env.COUNTRY !== "USA"
? {
SalesTaxCodeRef: {
FullName: findTaxCode(
billLine,
responsibilityCenters.sales_tax_codes
),
},
}
: {}),
};
};