{{ stats.total }} Rechnungen
{{ stats.draft }} Entwürfe
{{ stats.sent }} Gesendet
{{ stats.paid }} Bezahlt
{{ formatCurrency(stats.totalRevenue) }} Umsatz

Rechnungen

@if (loading) {
Lade Rechnungen...
} @else if (invoices.length === 0) {

Keine Rechnungen

Erstelle deine erste Rechnung um loszulegen

} @else {
Nr.
Kunde
Datum
Status
Betrag
Aktionen
@for (invoice of invoices; track invoice.id) {
{{ invoice.invoiceNumber }}
{{ invoice.customerName }}
{{ formatDate(invoice.date) }}
{{ getStatusLabel(invoice.status) }}
{{ formatCurrency(invoice.totalGross || calculateTotal(invoice.items, invoice.taxRate).gross) }}
@if (isExpanded(invoice.id)) {

Kunde

{{ invoice.customerName }}

{{ invoice.customerAddress }}

{{ invoice.customerZip }} {{ invoice.customerCity }}

@if (invoice.customerEmail) {

{{ invoice.customerEmail }}

}

Daten

Erstellt: {{ formatDate(invoice.date) }}

Fällig: {{ formatDate(invoice.dueDate) }}

Positionen ({{ invoice.items.length }})

@for (item of invoice.items; track item.id) {
{{ item.description }} {{ item.quantity }} {{ item.unit }} {{ formatCurrency(item.quantity * item.unitPrice) }}
}
Netto: {{ formatCurrency(calculateTotal(invoice.items, invoice.taxRate).net) }}
MwSt. ({{ invoice.taxRate }}%): {{ formatCurrency(calculateTotal(invoice.items, invoice.taxRate).tax) }}
Gesamt: {{ formatCurrency(calculateTotal(invoice.items, invoice.taxRate).gross) }}
@if (invoice.status === 'draft') { } @if (invoice.status === 'sent' || invoice.status === 'overdue') { } @if (invoice.status === 'sent') { }
}
} }
@if (showEditor) {

{{ editingInvoice ? 'Rechnung bearbeiten' : 'Neue Rechnung' }}

Rechnungsdetails

Kundendaten

Positionen

Beschreibung Menge Einheit Einzelpreis Gesamt
@for (item of form.items; track item.id; let i = $index) {
{{ formatCurrency(item.quantity * item.unitPrice) }}
}
Netto: {{ formatCurrency(formTotals.net) }}
MwSt. ({{ form.taxRate }}%): {{ formatCurrency(formTotals.tax) }}
Gesamt: {{ formatCurrency(formTotals.gross) }}

Hinweise

} @if (showPreview) {

Rechnungsvorschau

RECHNUNG

Leonards & Brandenburger IT
Nr. {{ form.invoiceNumber }}
Datum: {{ formatDate(form.date || '') }}
Fällig: {{ formatDate(form.dueDate || '') }}
Leonards & Brandenburger IT · Musterstraße 1 · 12345 Musterstadt
{{ form.customerName }}
{{ form.customerAddress }}
{{ form.customerZip }} {{ form.customerCity }}
@if (form.customerEmail) { }
@for (item of form.items; track item.id) { }
Beschreibung Menge Einheit Einzelpreis Gesamt
{{ item.description }} {{ item.quantity }} {{ item.unit }} {{ formatCurrency(item.unitPrice) }} {{ formatCurrency(item.quantity * item.unitPrice) }}
Netto:{{ formatCurrency(formTotals.net) }}
MwSt. ({{ form.taxRate }}%):{{ formatCurrency(formTotals.tax) }}
Gesamt:{{ formatCurrency(formTotals.gross) }}
@if (form.notes) {
Hinweise:

{{ form.notes }}

}
}