Abrechungslauf geändert
This commit is contained in:
parent
ce4577874b
commit
46f5cd9720
@ -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);
|
||||
}
|
||||
|
||||
@ -73,18 +73,25 @@
|
||||
<!-- Aktionen -->
|
||||
<div class="billing-actions">
|
||||
<% if (invoices.length === 0) { %>
|
||||
<!-- Noch kein Lauf → Vorschau + Lauf starten -->
|
||||
<div class="billing-preview-box">
|
||||
<div class="preview-info">
|
||||
<strong>Bereit für Abrechnungslauf <%= periodLabel %></strong>
|
||||
<span><%= eligible.length %> Mitglieder · Voraussichtlich <%= Number(preview_total).toFixed(2).replace('.', ',') %> €</span>
|
||||
<% if (period >= currentPeriod) { %>
|
||||
<!-- Aktueller/zukünftiger Monat → Lauf starten -->
|
||||
<div class="billing-preview-box">
|
||||
<div class="preview-info">
|
||||
<strong>Bereit für Abrechnungslauf <%= periodLabel %></strong>
|
||||
<span><%= eligible.length %> Mitglieder · Voraussichtlich <%= Number(preview_total).toFixed(2).replace('.', ',') %> €</span>
|
||||
</div>
|
||||
<form method="POST" action="/admin/billing/run"
|
||||
onsubmit="return confirm('Abrechnungslauf für <%= periodLabel %> starten? Dieser Vorgang kann nicht rückgängig gemacht werden.')">
|
||||
<input type="hidden" name="period" value="<%= period %>">
|
||||
<button type="submit" class="btn btn-primary">▶ Abrechnungslauf starten</button>
|
||||
</form>
|
||||
</div>
|
||||
<form method="POST" action="/admin/billing/run"
|
||||
onsubmit="return confirm('Abrechnungslauf für <%= periodLabel %> starten? Dieser Vorgang kann nicht rückgängig gemacht werden.')">
|
||||
<input type="hidden" name="period" value="<%= period %>">
|
||||
<button type="submit" class="btn btn-primary">▶ Abrechnungslauf starten</button>
|
||||
</form>
|
||||
</div>
|
||||
<% } else { %>
|
||||
<!-- Vergangener Monat ohne Rechnungen -->
|
||||
<div class="billing-past-info">
|
||||
<span>ℹ️ Für <strong><%= periodLabel %></strong> wurde kein Abrechnungslauf durchgeführt.</span>
|
||||
</div>
|
||||
<% } %>
|
||||
<% } else { %>
|
||||
<!-- Lauf bereits durchgeführt → Export & Aktionen -->
|
||||
<div class="billing-run-done">
|
||||
@ -212,9 +219,14 @@
|
||||
<td><%= Number(run.total_amount).toFixed(2).replace('.', ',') %> €</td>
|
||||
<td><%= run.created_by || '–' %></td>
|
||||
<td>
|
||||
<a href="/admin/billing?period=<%= run.period %>" class="btn btn-sm btn-outline">
|
||||
Anzeigen
|
||||
</a>
|
||||
<div style="display:flex;gap:6px">
|
||||
<a href="/admin/billing?period=<%= run.period %>" class="btn btn-sm btn-outline">
|
||||
Anzeigen
|
||||
</a>
|
||||
<a href="/admin/billing/export/csv?period=<%= run.period %>" class="btn btn-sm btn-outline" title="SEPA CSV">
|
||||
📥 CSV
|
||||
</a>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<% }) %>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user