BR-DE-23-a

Wenn BT-81 "Payment means type code" einen Schlüssel für Überweisungen enthält (30, 58), muss BG-17 "CREDIT TRANSFER" übermittelt werden.

In English If the payment means type code (BT-81) is a credit transfer code (30, 58), the credit transfer group (BG-17) must be given.

error: the document is invalid XRechnung Fehlermeldungen und ihre Lösung →

Why it fails

  • An XRechnung paid by credit transfer (code 30 or 58) has no cac:PayeeFinancialAccount.

How to fix it

Add the account to pay to: its IBAN in cbc:ID, and optionally the account name and BIC.

What the rule checks

As the rule set's publisher wrote it. The rule runs on every element the context matches, and fails where the test is false; the validator reports the line of that element

Context
/ubl:Invoice/cac:PaymentMeans[normalize-space(cbc:PaymentMeansCode) = ('30','58')] | /cn:CreditNote/cac:PaymentMeans[normalize-space(cbc:PaymentMeansCode) = ('30','58')]
Test
cac:PayeeFinancialAccount

Checked with XRechnung 3.0 Invoice (UBL), XRechnung 3.0 Credit Note (UBL)

Context
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementPaymentMeans[normalize-space(ram:TypeCode) = ('30','58')]
Test
ram:PayeePartyCreditorFinancialAccount

Checked with XRechnung 3.0 Invoice (CII)