From c963cb6fcc656f9a6cbb23713b65d991dac0e7ad Mon Sep 17 00:00:00 2001 From: Allan Carr Date: Tue, 6 Aug 2024 12:22:55 -0700 Subject: [PATCH] IO-2865 Job Total Labor InstanceManger Signed-off-by: Allan Carr --- .../job-totals.table.labor.component.jsx | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/client/src/components/job-totals-table/job-totals.table.labor.component.jsx b/client/src/components/job-totals-table/job-totals.table.labor.component.jsx index 683b34deb..5725bf6ef 100644 --- a/client/src/components/job-totals-table/job-totals.table.labor.component.jsx +++ b/client/src/components/job-totals-table/job-totals.table.labor.component.jsx @@ -57,15 +57,17 @@ export default function JobTotalsTableLabor({ job }) { render: (text, record) => record.hours.toFixed(1) }, ...InstanceRenderManager({ - imex: { - title: t("joblines.fields.total"), - dataIndex: "total", - key: "total", - align: "right", - sorter: (a, b) => a.total.amount - b.total.amount, - sortOrder: state.sortedInfo.columnKey === "total" && state.sortedInfo.order, - render: (text, record) => Dinero(record.total).toFormat() - }, + imex: [ + { + title: t("joblines.fields.total"), + dataIndex: "total", + key: "total", + align: "right", + sorter: (a, b) => a.total.amount - b.total.amount, + sortOrder: state.sortedInfo.columnKey === "total" && state.sortedInfo.order, + render: (text, record) => Dinero(record.total).toFormat() + } + ], rome: [ { title: t("joblines.fields.amount"),