From 05a3b009d35a07b4665a1949ef91e8c7819e13c8 Mon Sep 17 00:00:00 2001 From: Marco Date: Thu, 23 Jul 2026 10:20:17 +0000 Subject: [PATCH] Phase 2: iban/bic instead of bankDetails, matching the backend collection MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- app/company-settings-preview/page.tsx | 3 ++- app/lib/payload.ts | 3 ++- package-lock.json | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/app/company-settings-preview/page.tsx b/app/company-settings-preview/page.tsx index 3e1b70d..578532f 100644 --- a/app/company-settings-preview/page.tsx +++ b/app/company-settings-preview/page.tsx @@ -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 diff --git a/app/lib/payload.ts b/app/lib/payload.ts index 26c1271..2eb29c0 100644 --- a/app/lib/payload.ts +++ b/app/lib/payload.ts @@ -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), diff --git a/package-lock.json b/package-lock.json index 321c1ea..a4900dc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -294,7 +294,7 @@ }, "node_modules/@einfach-produktiv/invoicing": { "version": "0.1.0", - "resolved": "git+https://git.mk360.de/Marco/einfach-produktiv-invoicing.git#9336cfd0ba7faf1148fd56e7254e52fc016b9130", + "resolved": "git+https://git.mk360.de/Marco/einfach-produktiv-invoicing.git#62821ddc8af053146d8d4a02b54a79791c93e419", "peerDependencies": { "@react-pdf/renderer": "^4.0.0", "react": "^19.0.0"