From 191f3f96a2a0854c37e34f6336488586d5e875f5 Mon Sep 17 00:00:00 2001 From: Patrick Fic <> Date: Thu, 17 Feb 2022 17:06:02 -0800 Subject: [PATCH] IO-1744 Resolve missing sublet calcuations. --- server/job/job-costing.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/server/job/job-costing.js b/server/job/job-costing.js index fe630fe58..5ccdeba0d 100644 --- a/server/job/job-costing.js +++ b/server/job/job-costing.js @@ -720,8 +720,14 @@ function GenerateCostingData(job) { const cost_sublet = billTotalsByCostCenters.subletCosts[ccVal] || Dinero({ amount: 0 }); - const costs = cost_labor.add(cost_parts).add(cost_additional); - const totalSales = sale_labor.add(sale_parts).add(sale_additional); + const costs = cost_labor + .add(cost_parts) + .add(cost_additional) + .add(cost_sublet); + const totalSales = sale_labor + .add(sale_parts) + .add(sale_additional) + .add(sale_sublet); const gpdollars = totalSales.subtract(costs); const gppercent = ( (gpdollars.getAmount() / totalSales.getAmount()) *