From f5533075870084d06fb0d65c9983a2cb8450665b Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Wed, 17 May 2023 10:11:27 -0700 Subject: [PATCH] Added rounding to job costing for adjustments. --- server/job/job-costing.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/job/job-costing.js b/server/job/job-costing.js index 33ae5722b..2096ac7d1 100644 --- a/server/job/job-costing.js +++ b/server/job/job-costing.js @@ -840,7 +840,9 @@ function GenerateCostingData(job) { //Push adjustments to bottom line. if (job.adjustment_bottom_line) { //Add to totals. - const Adjustment = Dinero({ amount: job.adjustment_bottom_line * 100 }); //Need to invert, since this is being assigned as a cost. + const Adjustment = Dinero({ + amount: Math.round(job.adjustment_bottom_line * 100), + }); //Need to invert, since this is being assigned as a cost. summaryData.totalLaborSales = summaryData.totalLaborSales.add(Adjustment); summaryData.totalSales = summaryData.totalSales.add(Adjustment); //Add to lines.