Seller tax representative name required

Error BR-18 EN 16931

The Seller tax representative name (BT-62) shall be provided in the Invoice, 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

The provided SellerTaxRepresentativeTradeParty has no non-empty Name. A missing Name or one containing only whitespace does not satisfy the test.

What the rule means

The name identifies the seller's tax representative when one is provided in the invoice.

Affected fields BT-62 BG-4 BG-11
Please add the seller's tax representative name

The seller's specified tax representative has no name. Add a name that is not empty.

What to do
  1. Add the name in SellerTaxRepresentativeTradeParty.
  2. Use FacturXInvoice.SellerTaxRepresentative and set the name using Party.Name.
  3. Regenerate the invoice and validate it again.
What it looks like
✗ Triggers the message
<ram:SellerTaxRepresentativeTradeParty>
  <ram:Name/>
</ram:SellerTaxRepresentativeTradeParty>
✓ Correct
<ram:SellerTaxRepresentativeTradeParty>
  <ram:Name>Representative One</ram:Name>
</ram:SellerTaxRepresentativeTradeParty>
Check in FactoorSharp
  • FacturXInvoice.SellerTaxRepresentative (BG-11)
  • FacturXInvoice.SetSeller(name, postcode, city, street, street2, country, id, globalID, legalOrganization, description, countrySubdivisonName, addressLine3) (BG-4)
  • FacturXInvoice.Seller (BG-4)
  • Party.Name (SellerTaxRepresentativeTradeParty: BT-62)
Technical details

The test applies normalize-space to SellerTaxRepresentativeTradeParty/Name and requires the result to be non-empty.

Where the rule applies

The rule applies within SellerTaxRepresentativeTradeParty when the seller provides a tax representative as SellerTaxRepresentativeTradeParty.

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