Phase 2: iban/bic instead of bankDetails, matching the backend collection

CompanySettings type now mirrors the payload repo's split bankDetails ->
iban/bic (see that repo's own commit for the reasoning). No behavior
change here beyond the type/fallback update — the actual footer
rendering lives in @einfach-produktiv/invoicing.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Marco
2026-07-23 10:20:17 +00:00
parent 66ac184a6f
commit 05a3b009d3
3 changed files with 5 additions and 3 deletions
+2 -1
View File
@@ -22,7 +22,8 @@ const FALLBACK: CompanySettings = {
sellerEmail: "",
vatId: "",
taxRatePercent: 19,
bankDetails: null,
iban: null,
bic: null,
};
// Entered exclusively via CompanySettings.ts's admin.livePreview.url (a
+2 -1
View File
@@ -737,7 +737,8 @@ export type CompanySettings = {
sellerEmail: string;
vatId: string;
taxRatePercent: number;
bankDetails: string | null;
iban: string | null;
bic: string | null;
};
// Server-only in practice (only ever called from app/lib/invoiceData.ts),