From 4e8e369f4eaa93e72ea18b524b113afbbea5d44f Mon Sep 17 00:00:00 2001 From: anor Date: Tue, 18 Aug 2026 00:30:46 +1000 Subject: [PATCH] =?UTF-8?q?fix:=20=D0=B8=D0=B7=20=D0=B4=D0=B5=D1=82=D0=B0?= =?UTF-8?q?=D0=BB=D0=B8=D0=B7=D0=B0=D1=86=D0=B8=D0=B8=20=D0=BF=D0=BE=20?= =?UTF-8?q?=D1=8E=D1=80=D0=BB=D0=B8=D1=86=D0=B0=D0=BC=20=D1=83=D0=B1=D1=80?= =?UTF-8?q?=D0=B0=D0=BD=20=D1=81=D1=82=D0=BE=D0=BB=D0=B1=D0=B5=D1=86=20?= =?UTF-8?q?=D1=81=D1=80=D0=B0=D0=B2=D0=BD=D0=B5=D0=BD=D0=B8=D1=8F=20=D1=81?= =?UTF-8?q?=20=D0=BF=D1=80=D0=BE=D1=88=D0=BB=D0=BE=D0=B9=20=D0=BD=D0=B5?= =?UTF-8?q?=D0=B4=D0=B5=D0=BB=D0=B5=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/sections/Cash.tsx | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/client/src/sections/Cash.tsx b/client/src/sections/Cash.tsx index c10d8e0..091a077 100644 --- a/client/src/sections/Cash.tsx +++ b/client/src/sections/Cash.tsx @@ -1,8 +1,8 @@ import { useMemo } from 'react'; import type { Dataset } from '../types'; -import { AmountCard, MetricCard, Panel, SectionHeader, DataTable, Change, Empty } from '../components/ui'; +import { AmountCard, MetricCard, Panel, SectionHeader, DataTable, Empty } from '../components/ui'; import { RankBars } from '../components/charts'; -import { amount, dateLabel, money, percent, ratio, signedAmount, weekLabel } from '../lib/format'; +import { amount, dateLabel, money, percent, signedAmount, weekLabel } from '../lib/format'; import { groupSum, sortedEntries, uniqueSorted } from '../lib/aggregate'; export function Cash({ dataset }: { dataset: Dataset }) { @@ -26,8 +26,6 @@ export function Cash({ dataset }: { dataset: Dataset }) { ); const lastWeekRows = dataset.cashWeekly.filter((row) => row.date === lastDate); - const previousWeekRows = dataset.cashWeekly.filter((row) => row.date === previousDate); - const previousByCompany = new Map(previousWeekRows.map((row) => [row.company, row.closeBalance ?? 0])); const bankDates = useMemo(() => uniqueSorted(dataset.cashBanks.map((row) => row.date)), [dataset.cashBanks]); const banksLastDate = bankDates[bankDates.length - 1] ?? ''; @@ -112,7 +110,6 @@ export function Cash({ dataset }: { dataset: Dataset }) { { key: 'out', label: 'Расход за неделю' }, { key: 'saldo', label: 'Сальдо' }, { key: 'close', label: 'Остаток на конец' }, - { key: 'change', label: 'К прошлой неделе' }, ]} rows={lastWeekRows .slice() @@ -128,7 +125,6 @@ export function Cash({ dataset }: { dataset: Dataset }) { {signedAmount(row.saldo ?? 0)} , {amount(row.closeBalance ?? 0)}, - , ], }))} footer={[ @@ -138,7 +134,6 @@ export function Cash({ dataset }: { dataset: Dataset }) { amount(outflow), signedAmount(inflow - outflow), amount(total), - '', ]} />