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