From 663daf50ff92293adcc93aed42333eeba2d08849 Mon Sep 17 00:00:00 2001 From: Luca <102960244+Luca-Timo@users.noreply.github.com> Date: Fri, 12 Jun 2026 17:57:54 +0200 Subject: [PATCH] fix(accounting): always show Income/Costs/Result summary on tax page (even with zero costs) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Einnahmen-Ausgaben summary only rendered when costs existed, so a period with no incoming invoices/expenses looked revenue-only. Now it shows whenever the cost side loaded successfully (costs default to 0 → Result = Income), so the income/result is always visible. Still hidden when the cost side errored (the amber banner covers that case). --- frontend/src/pages/admin/clients/TaxReportPage.tsx | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/frontend/src/pages/admin/clients/TaxReportPage.tsx b/frontend/src/pages/admin/clients/TaxReportPage.tsx index afc788b1..3251c77f 100644 --- a/frontend/src/pages/admin/clients/TaxReportPage.tsx +++ b/frontend/src/pages/admin/clients/TaxReportPage.tsx @@ -285,12 +285,11 @@ export const TaxReportPage: React.FC = () => { - {/* Einnahmen-Ausgaben summary (#4): income vs costs vs - result. Only when there is a cost side. The result line - is the simplified surplus a Milchbüchlein needs; VAT - payable is a guideline (depends on each cost's tax - treatment — see disclaimer below the cost table). */} - {hasCosts && report.summary && ( + {/* Einnahmen-Ausgaben summary (#4): income vs costs vs result. + Always shown when the cost side loaded (even with zero costs) + so the result/income is visible, not just revenue. Hidden only + if the cost side errored (a banner explains that separately). */} + {report.summary && !report.costsError && (

{t('taxReport.summary.title', 'Income / costs')}