BR-DE-4

Das Element "Seller post code" (BT-38) muss übermittelt werden.

error: the document is invalid

Why it fails

  • The seller's postal address has no post code: cbc:PostalZone (ram:PostcodeCode in CII) is missing or empty.

How to fix it

Add the post code to the seller address, even when the city alone would be enough in your country.

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:AccountingSupplierParty/cac:Party/cac:PostalAddress | /cn:CreditNote/cac:AccountingSupplierParty/cac:Party/cac:PostalAddress
Test
cbc:PostalZone[boolean(normalize-space(.))]

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

Context
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTradeParty/ram:PostalTradeAddress
Test
ram:PostcodeCode[boolean(normalize-space(.))]

Checked with XRechnung 3.0 Invoice (CII)