From 7ee740f7ceaba6516e28c165622b47468dd0da1b Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Sat, 15 May 2021 23:01:51 -0700 Subject: [PATCH] IO-1094 Remove manual lines from additional costs. --- server/job/job-totals.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/job/job-totals.js b/server/job/job-totals.js index 293245918..52fe14e52 100644 --- a/server/job/job-totals.js +++ b/server/job/job-totals.js @@ -274,7 +274,9 @@ function IsAdditionalCost(jobLine) { jobLine.db_ref === "936008" || jobLine.db_ref === "936007"; return ( - !jobLine.db_ref || (jobLine.db_ref.startsWith("9360") && !isPaintOrShopMat) + (jobLine.lbr_op === "OP13" || //Added to resolve manual job lines coming into other totals because they have no reference. + (jobLine.db_ref && jobLine.db_ref.startsWith("9360"))) && + !isPaintOrShopMat ); }