IO-3496 STOR Job Total USA
Signed-off-by: Allan Carr <allan@imexsystems.ca>
This commit is contained in:
@@ -1506,6 +1506,7 @@ exports.GET_JOB_BY_PK = `query GET_JOB_BY_PK($id: uuid!) {
|
|||||||
est_ct_fn
|
est_ct_fn
|
||||||
shopid
|
shopid
|
||||||
est_ct_ln
|
est_ct_ln
|
||||||
|
ciecaid
|
||||||
cieca_pfl
|
cieca_pfl
|
||||||
cieca_pft
|
cieca_pft
|
||||||
cieca_pfo
|
cieca_pfo
|
||||||
|
|||||||
@@ -948,6 +948,12 @@ function CalculateTaxesTotals(job, otherTotals) {
|
|||||||
amount: Math.round(stlTowing.t_amt * 100)
|
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)
|
if (stlStorage)
|
||||||
taxableAmounts.STOR = taxableAmounts.STOR.add(
|
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;
|
const pfp = job.parts_tax_rates;
|
||||||
|
|
||||||
//For any profile level markups/discounts, add them in now as well.
|
//For any profile level markups/discounts, add them in now as well.
|
||||||
|
|||||||
Reference in New Issue
Block a user