Merged in release/2025-12-19 (pull request #2794)

IO-3496 STOR Job Total USA
This commit is contained in:
Dave Richer
2026-01-09 16:51:38 +00:00
2 changed files with 14 additions and 0 deletions

View File

@@ -1509,6 +1509,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.