From 08d334e93a03678680091db502577cdb3e518670 Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Thu, 5 Jan 2023 17:06:47 -0800 Subject: [PATCH 1/4] Resolve rounding for QBO Receivables Multi Payer. --- server/accounting/qb-receivables-lines.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/server/accounting/qb-receivables-lines.js b/server/accounting/qb-receivables-lines.js index 9f6612dd2..fa637e38e 100644 --- a/server/accounting/qb-receivables-lines.js +++ b/server/accounting/qb-receivables-lines.js @@ -654,9 +654,9 @@ exports.default = function ({ if (qbo) { InvoiceLineAdd.push({ DetailType: "SalesItemLineDetail", - Amount: Dinero({ amount: (payer.amount || 0) * 100 * -1 }).toFormat( - DineroQbFormat - ), + Amount: Dinero({ + amount: Math.round((payer.amount || 0) * 100) * -1, + }).toFormat(DineroQbFormat), SalesItemLineDetail: { ...(jobs_by_pk.class ? { ClassRef: { value: classes[jobs_by_pk.class] } } @@ -687,9 +687,9 @@ exports.default = function ({ FullName: responsibilityCenters.qb_multiple_payers?.accountitem, }, Desc: `${payer.name} Liability`, - Amount: Dinero({ amount: (payer.amount || 0) * 100 * -1 }).toFormat( - DineroQbFormat - ), + Amount: Dinero({ + amount: Math.round((payer.amount || 0) * 100) * -1, + }).toFormat(DineroQbFormat), }); } }); From 9de076f060d14576ad48bb019736221ac633fe24 Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Fri, 6 Jan 2023 09:56:23 -0800 Subject: [PATCH 2/4] IO-2132 Updated approach to ATS summary. --- bodyshop_translations.babel | 2 +- .../schedule-ats-summary.component.jsx | 35 ++++++++++++------- .../schedule-calendar.component.jsx | 7 ++-- .../redux/application/application.sagas.js | 15 -------- client/src/translations/en_us/common.json | 2 +- 5 files changed, 27 insertions(+), 34 deletions(-) diff --git a/bodyshop_translations.babel b/bodyshop_translations.babel index 1f8f8bb05..412419163 100644 --- a/bodyshop_translations.babel +++ b/bodyshop_translations.babel @@ -1,4 +1,4 @@ - +