From 6c9dd969e507d7705b1b80b652d0f04670e1cfa0 Mon Sep 17 00:00:00 2001 From: Allan Carr Date: Thu, 8 Jan 2026 15:34:48 -0800 Subject: [PATCH] IO-3496 STOR Job Total USA Signed-off-by: Allan Carr --- server/graphql-client/queries.js | 1 + server/job/job-totals-USA.js | 13 +++++++++++++ 2 files changed, 14 insertions(+) diff --git a/server/graphql-client/queries.js b/server/graphql-client/queries.js index b51c73c49..4894cc37b 100644 --- a/server/graphql-client/queries.js +++ b/server/graphql-client/queries.js @@ -1506,6 +1506,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 diff --git a/server/job/job-totals-USA.js b/server/job/job-totals-USA.js index 7f9abb0a2..6d5c7c8b4 100644 --- a/server/job/job-totals-USA.js +++ b/server/job/job-totals-USA.js @@ -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.