From 4e9b4b9dd47341d68efa0f6409fe0af4e3f0eab9 Mon Sep 17 00:00:00 2001 From: Marco Date: Thu, 23 Jul 2026 10:26:23 +0000 Subject: [PATCH] Add bankName back to InvoiceSeller, shown alongside IBAN/BIC MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Dropped by accident when bankDetails split into iban/bic — a bank name has no fixed format to validate, so it stays free text, but it's still useful context next to the account numbers in the invoice footer. Co-Authored-By: Claude Sonnet 5 --- src/correctionInvoicePdf.tsx | 2 +- src/invoicePdf.tsx | 2 +- src/seller.ts | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/correctionInvoicePdf.tsx b/src/correctionInvoicePdf.tsx index 8f1397a..e021804 100644 --- a/src/correctionInvoicePdf.tsx +++ b/src/correctionInvoicePdf.tsx @@ -304,7 +304,7 @@ function CorrectionInvoiceDocument({ kind, order, seller }: { kind: CorrectionIn invoicePdf.tsx's own comment on this same line. */} {(seller.iban || seller.bic) && ( - Bankverbindung: {[seller.iban && `IBAN ${seller.iban}`, seller.bic && `BIC ${seller.bic}`].filter(Boolean).join(" · ")} + Bankverbindung: {[seller.bankName, seller.iban && `IBAN ${seller.iban}`, seller.bic && `BIC ${seller.bic}`].filter(Boolean).join(" · ")} )} diff --git a/src/invoicePdf.tsx b/src/invoicePdf.tsx index f72c2a4..acc65e0 100644 --- a/src/invoicePdf.tsx +++ b/src/invoicePdf.tsx @@ -340,7 +340,7 @@ export function InvoiceDocument({ order, seller }: { order: InvoiceOrder; seller reasons, e.g. a refund) — see this package's README. */} {(seller.iban || seller.bic) && ( - Bankverbindung: {[seller.iban && `IBAN ${seller.iban}`, seller.bic && `BIC ${seller.bic}`].filter(Boolean).join(" · ")} + Bankverbindung: {[seller.bankName, seller.iban && `IBAN ${seller.iban}`, seller.bic && `BIC ${seller.bic}`].filter(Boolean).join(" · ")} )} diff --git a/src/seller.ts b/src/seller.ts index 9e4fe01..4a2e90d 100644 --- a/src/seller.ts +++ b/src/seller.ts @@ -14,7 +14,9 @@ export type InvoiceSeller = { // Structured (Phase 2 of the e-invoicing migration — EN16931 wants // discrete PaymentMeans data, not a free-text paragraph a human // formatted by hand) — replaces what used to be a single `bankDetails` - // textarea field. + // textarea field. bankName has no fixed format to validate against + // (unlike iban/bic), so it stays plain free text. + bankName?: string | null; iban?: string | null; bic?: string | null; // Pflichtangaben in Geschäftsbriefen for registered legal forms (§37a