From fb2bc20b4fe0a0eda86cf5b765f61649d73427fa Mon Sep 17 00:00:00 2001 From: Dave Richer Date: Thu, 5 Sep 2024 13:59:03 -0400 Subject: [PATCH] - removed unused function Signed-off-by: Dave Richer --- .../production-board-kanban.statistics.jsx | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/client/src/components/production-board-kanban/production-board-kanban.statistics.jsx b/client/src/components/production-board-kanban/production-board-kanban.statistics.jsx index f96b63903..301ff17f0 100644 --- a/client/src/components/production-board-kanban/production-board-kanban.statistics.jsx +++ b/client/src/components/production-board-kanban/production-board-kanban.statistics.jsx @@ -32,17 +32,6 @@ const ProductionStatistics = ({ data, cardSettings, reducerData }) => { return items.reduce((acc, item) => acc + (item[key]?.aggregate?.sum?.[subKey] || 0), 0); }; - const sumDineroAmounts = (items, key, getAmountFn) => { - return items.reduce( - (acc, item) => { - const amount = getAmountFn(item, key); - const dineroAmount = Dinero(amount ?? 0); - return acc.add(dineroAmount); - }, - Dinero({ amount: 0 }) - ); - }; - const calculateTotalAmount = (items, key) => { return items.reduce((acc, item) => acc.add(Dinero(item[key]?.totals?.subtotal ?? Dinero())), Dinero({ amount: 0 })); };