IO-539 Adjust Threshold Totals

This commit is contained in:
Patrick Fic
2021-08-19 08:48:30 -07:00
parent a57e35354d
commit 3b7c31626d

View File

@@ -363,7 +363,8 @@ function CalculateTaxesTotals(job, otherTotals) {
job.joblines
.filter((jl) => !jl.removed)
.forEach((val) => {
if (!val.tax_part || (!val.part_type && IsAdditionalCost(val))) {
if (!val.tax_part) return;
if (!val.part_type && IsAdditionalCost(val)) {
additionalItemsTax = additionalItemsTax.add(
Dinero({ amount: Math.round((val.act_price || 0) * 100) })
.multiply(val.part_qty || 0)