From 28a41f7637c5a0aa4aa5fa3934e30da7cdb0ef9c Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Mon, 2 Feb 2026 09:33:37 -0800 Subject: [PATCH 1/2] IO-3534 Adjust value prop to content for antd prop change to fix color display. --- .../components/bill-form/bill-form.component.jsx | 14 +++++++++++--- .../total-production-hours.component.jsx | 2 +- .../dms-post-form/cdklike-dms-post-form.jsx | 2 +- .../payment-form.totalpayments.component.jsx | 2 +- .../src/pages/jobs-close/jobs-close.component.jsx | 2 +- 5 files changed, 15 insertions(+), 7 deletions(-) diff --git a/client/src/components/bill-form/bill-form.component.jsx b/client/src/components/bill-form/bill-form.component.jsx index d46035805..14d26570c 100644 --- a/client/src/components/bill-form/bill-form.component.jsx +++ b/client/src/components/bill-form/bill-form.component.jsx @@ -373,9 +373,16 @@ export function BillFormComponent({ "local_tax_rate" ]); let totals; - if (!!values.total && !!values.billlines && values.billlines.length > 0) + if (!!values.total && !!values.billlines && values.billlines.length > 0) { totals = CalculateBillTotal(values); - if (totals) + } + + if (totals) { + console.log( + "Discrep", + totals.discrepancy.getAmount(), + totals.discrepancy.getAmount() === 0 ? "green" : "red" + ); return ( // TODO: Align is not correct // eslint-disable-next-line react/no-unknown-property @@ -414,7 +421,7 @@ export function BillFormComponent({ ); + } return null; }} diff --git a/client/src/components/dashboard-components/total-production-hours/total-production-hours.component.jsx b/client/src/components/dashboard-components/total-production-hours/total-production-hours.component.jsx index 5c29a1962..b9716e84b 100644 --- a/client/src/components/dashboard-components/total-production-hours/total-production-hours.component.jsx +++ b/client/src/components/dashboard-components/total-production-hours/total-production-hours.component.jsx @@ -36,7 +36,7 @@ export function DashboardTotalProductionHours({ bodyshop, data, ...cardProps }) diff --git a/client/src/components/dms-post-form/cdklike-dms-post-form.jsx b/client/src/components/dms-post-form/cdklike-dms-post-form.jsx index 43003a45f..9e006534b 100644 --- a/client/src/components/dms-post-form/cdklike-dms-post-form.jsx +++ b/client/src/components/dms-post-form/cdklike-dms-post-form.jsx @@ -404,7 +404,7 @@ export default function CdkLikePostForm({ bodyshop, socket, job, logsRef, mode, =