Country code in the tax representative’s address

Error BR-20 EN 16931

The Seller tax representative postal address (BG-12) shall contain a Tax representative country code (BT-69), if the Seller (BG-4) has a Seller tax representative party (BG-11).

Mandatory rule: As long as it is violated, the invoice is invalid and will be rejected by validators.
What is wrong

ram:CountryID is missing from ram:PostalTradeAddress or contains only whitespace.

What the rule means

The tax representative’s postal address must include the country code to specify the country of the address.

Affected fields BG-12 BT-69 BG-4 BG-11
Please add the country code to the tax representative’s address

The tax representative’s postal address is missing the country code, or the field is empty. Enter the code in the address.

What to do
  1. Enter the country code in ram:PostalTradeAddress/ram:CountryID.
  2. Check the tax representative’s Country value, then regenerate the invoice and check it again.
What it looks like
✗ Triggers the message
<ram:SellerTaxRepresentativeTradeParty>
  <ram:PostalTradeAddress>
    <ram:CountryID/>
  </ram:PostalTradeAddress>
</ram:SellerTaxRepresentativeTradeParty>
✓ Correct
<ram:SellerTaxRepresentativeTradeParty>
  <ram:PostalTradeAddress>
    <ram:CountryID>DE</ram:CountryID>
  </ram:PostalTradeAddress>
</ram:SellerTaxRepresentativeTradeParty>
Check in FactoorSharp
  • Party.Country (SellerTaxRepresentativeTradeParty: BT-69)
  • FacturXInvoice.SellerTaxRepresentative (BG-11)
  • FacturXInvoice.SetSeller(name, postcode, city, street, street2, country, id, globalID, legalOrganization, description, countrySubdivisonName, addressLine3) (BG-4)
  • FacturXInvoice.Seller (BG-4)
Technical details

The test requires normalize-space(ram:PostalTradeAddress/ram:CountryID) to be non-empty.

Where the rule applies

The rule applies to the ram:PostalTradeAddress of the seller’s tax representative.

Context (rule/@context)
//ram:SellerTaxRepresentativeTradeParty
Test expression (assert/@test)
normalize-space(ram:PostalTradeAddress/ram:CountryID) != ''