From ca0944293f66b6465a577340e63d592598915092 Mon Sep 17 00:00:00 2001 From: Luca <102960244+Luca-Timo@users.noreply.github.com> Date: Mon, 29 Jun 2026 18:38:21 +0200 Subject: [PATCH] fix(invoices): show "Draft" on the invoice detail page for accumulator drafts Follow-up to the Bills-list change: the invoice detail header still printed "Scheduled" for a running monthly/manual draft (is_monthly_draft). It already had a separate monthly-draft badge, but the status pill itself now reads "Draft" too, matching the list and the Billed-chip link target. --- frontend/src/pages/admin/bills/BillDetailPage.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/pages/admin/bills/BillDetailPage.tsx b/frontend/src/pages/admin/bills/BillDetailPage.tsx index 0e60ec73..252e4d41 100644 --- a/frontend/src/pages/admin/bills/BillDetailPage.tsx +++ b/frontend/src/pages/admin/bills/BillDetailPage.tsx @@ -264,7 +264,10 @@ export const BillDetailPage: React.FC = () => { )} - {t(`bills.status.${inv.status}`, inv.status)} + {/* A running monthly/manual accumulator carries status + 'scheduled' but never auto-sends on manual cadence — + read it as "Draft", matching the Bills list. */} + {inv.isMonthlyDraft ? t('bills.status.draft', 'Draft') : t(`bills.status.${inv.status}`, inv.status)}