From 78d3085a095979e13678e001828bc78cf9f45e05 Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Tue, 4 May 2021 19:23:41 -0700 Subject: [PATCH] Update credit memo totals [ci ignore] --- .../job-bills-total/job-bills-total.component.jsx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/client/src/components/job-bills-total/job-bills-total.component.jsx b/client/src/components/job-bills-total/job-bills-total.component.jsx index 81fcd5e9e..524b57279 100644 --- a/client/src/components/job-bills-total/job-bills-total.component.jsx +++ b/client/src/components/job-bills-total/job-bills-total.component.jsx @@ -74,7 +74,8 @@ export default function JobBillsTotalComponent({ const discrepWithLbrAdj = discrepancy.add(lbrAdjustments); const discrepWithCms = discrepWithLbrAdj.add(billCms); - const creditsNotReceived = totalReturns.add(billCms); //billCms is tracked as a negative number. + const creditsNotReceived = totalReturns.subtract(billCms); //billCms is tracked as a negative number. + return ( @@ -225,9 +226,13 @@ export default function JobBillsTotalComponent({ = 0 + ? creditsNotReceived.toFormat() + : Dinero().toFormat() + } />