+
+
+
+ {#if invoice.status === 'draft'}
+ Bearbeiten
+
+ Als versendet markieren
+
+ {/if}
+ {#if invoice.status === 'sent' || invoice.status === 'overdue'}
+
+ Als bezahlt markieren
+
+ {/if}
+ Duplizieren
+ {#if invoice.status !== 'paid' && invoice.status !== 'void'}
+ Stornieren
+ {/if}
+ {#if invoice.status === 'draft' || invoice.status === 'void'}
+ Löschen
+ {/if}
+
+
+ {#if actionError}
+ {actionError}
+ {/if}
+
+
+ Empfänger
+
+
{invoice.clientSnapshot.name}
+ {#if invoice.clientSnapshot.address}
+
{invoice.clientSnapshot.address}
+ {/if}
+ {#if invoice.clientSnapshot.email}
+
{invoice.clientSnapshot.email}
+ {/if}
+ {#if invoice.clientSnapshot.vatNumber}
+
MwSt-Nr.: {invoice.clientSnapshot.vatNumber}
+ {/if}
+
+
+
+
+ Positionen
+
+
+
+ Position
+ Menge
+ Einzelpreis
+ MwSt.
+ Netto
+
+
+
+ {#each invoice.lines as line (line.id)}
+
+
+ {line.title}
+ {#if line.description}{line.description}
{/if}
+
+ {line.quantity}{line.unit ? ` ${line.unit}` : ''}
+ {formatAmount(line.unitPrice, invoice.currency)}
+ {line.vatRate}%
+
+ {formatAmount(line.quantity * line.unitPrice, invoice.currency)}
+
+
+ {/each}
+
+
+
+
+
+ Summe
+
+ Netto
+ {formatAmount(invoice.totals.net, invoice.currency)}
+ {#each invoice.totals.vatBreakdown as b (b.rate)}
+ MwSt. {b.rate}%
+ {formatAmount(b.tax, invoice.currency)}
+ {/each}
+ Total
+ {formatAmount(invoice.totals.gross, invoice.currency)}
+
+
+
+ {#if invoice.notes}
+
+ Notizen
+ {invoice.notes}
+
+ {/if}
+
+ {#if invoice.terms}
+
+ Zahlungsbedingungen
+ {invoice.terms}
+
+ {/if}
+
+
+
+
+
diff --git a/apps/mana/apps/web/src/routes/(app)/invoices/[id]/+page.svelte b/apps/mana/apps/web/src/routes/(app)/invoices/[id]/+page.svelte
new file mode 100644
index 000000000..b3442ba5e
--- /dev/null
+++ b/apps/mana/apps/web/src/routes/(app)/invoices/[id]/+page.svelte
@@ -0,0 +1,34 @@
+
+
+
+ {#if !invoice && invoices$.value !== undefined}
+
+ {:else if invoice && !canEdit}
+
+
Rechnung kann nicht bearbeitet werden
+
+ Nur Entwürfe sind editierbar. Diese Rechnung hat Status
+ {invoice.status} . Um eine versendete Rechnung zu ändern, storniere sie und
+ dupliziere sie als neuen Entwurf.
+
+
Zurück zum Detail
+
+ {:else if invoice}
+
+ Rechnung {invoice.number} bearbeiten
+
+
+ {:else}
+
Lädt …
+ {/if}
+
+
+
diff --git a/apps/mana/apps/web/src/routes/(app)/invoices/new/+page.svelte b/apps/mana/apps/web/src/routes/(app)/invoices/new/+page.svelte
new file mode 100644
index 000000000..1877d403b
--- /dev/null
+++ b/apps/mana/apps/web/src/routes/(app)/invoices/new/+page.svelte
@@ -0,0 +1,40 @@
+
+
+
+
+
diff --git a/apps/mana/apps/web/src/routes/(app)/invoices/settings/+page.svelte b/apps/mana/apps/web/src/routes/(app)/invoices/settings/+page.svelte
new file mode 100644
index 000000000..96f565e24
--- /dev/null
+++ b/apps/mana/apps/web/src/routes/(app)/invoices/settings/+page.svelte
@@ -0,0 +1,40 @@
+
+
+
+
+