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:
@@ -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
@@ -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),
|
||||
|
||||
Generated
+1
-1
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user