Merged in feature/IO-3496-STOR-Job-Total-USA (pull request #2793)

IO-3496 STOR Job Total USA

Approved-by: Dave Richer
This commit is contained in:
Allan Carr
2026-01-09 16:51:18 +00:00
committed by Dave Richer
2 changed files with 14 additions and 0 deletions

View File

@@ -1507,6 +1507,7 @@ exports.GET_JOB_BY_PK = `query GET_JOB_BY_PK($id: uuid!) {
est_ct_fn
shopid
est_ct_ln
ciecaid
cieca_pfl
cieca_pft
cieca_pfo

View File

@@ -948,6 +948,12 @@ function CalculateTaxesTotals(job, otherTotals) {
amount: Math.round(stlTowing.t_amt * 100)
})
);
if (!stlTowing && !job.ciecaid && job.towing_payable)
taxableAmounts.TOW = taxableAmounts.TOW.add(
Dinero({
amount: Math.round((job.towing_payable || 0) * 100)
})
);
if (stlStorage)
taxableAmounts.STOR = taxableAmounts.STOR.add(
@@ -956,6 +962,13 @@ function CalculateTaxesTotals(job, otherTotals) {
}))
);
if (!stlStorage && !job.ciecaid && job.storage_payable)
taxableAmounts.STOR = taxableAmounts.STOR.add(
Dinero({
amount: Math.round((job.storage_payable || 0) * 100)
})
);
const pfp = job.parts_tax_rates;
//For any profile level markups/discounts, add them in now as well.