diff --git a/public/css/style.css b/public/css/style.css index 15cb8c7..59f0e6f 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -1144,3 +1144,12 @@ body:not(.admin-body) > * { font-size: 1rem; font-weight: 700; color: var(--text-muted); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; } + +.billing-past-info { + background: #f9fafb; + border: 1.5px solid var(--border); + border-radius: 14px; + padding: 14px 24px; + font-size: 0.92rem; + color: var(--text-muted); +} diff --git a/views/admin/billing.ejs b/views/admin/billing.ejs index d014def..02a42a0 100644 --- a/views/admin/billing.ejs +++ b/views/admin/billing.ejs @@ -73,18 +73,25 @@
<% if (invoices.length === 0) { %> - -
-
- Bereit für Abrechnungslauf <%= periodLabel %> - <%= eligible.length %> Mitglieder · Voraussichtlich <%= Number(preview_total).toFixed(2).replace('.', ',') %> € + <% if (period >= currentPeriod) { %> + +
+
+ Bereit für Abrechnungslauf <%= periodLabel %> + <%= eligible.length %> Mitglieder · Voraussichtlich <%= Number(preview_total).toFixed(2).replace('.', ',') %> € +
+
+ + +
-
- - -
-
+ <% } else { %> + +
+ ℹ️ Für <%= periodLabel %> wurde kein Abrechnungslauf durchgeführt. +
+ <% } %> <% } else { %>
@@ -212,9 +219,14 @@ <%= Number(run.total_amount).toFixed(2).replace('.', ',') %> € <%= run.created_by || '–' %> - - Anzeigen - +
+ + Anzeigen + + + 📥 CSV + +
<% }) %>