Name of a different payee

Error BR-17 EN 16931

The Payee name (BT-59) shall be provided in the Invoice, if the Payee (BG-10) is different from the Seller (BG-4).

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

The payee’s name ram:Name is missing even though the payee does not match the seller by name, identifier ram:ID, or the identifier in ram:SpecifiedLegalOrganization/ram:ID.

What the rule means

If the payee differs from the seller based on the details checked, the invoice must include the payee’s name. This identifies the payee as a separate party.

Affected fields BT-59 BG-10 BG-4
Please add the name of the different payee

The invoice contains a payee who differs from the seller, but no name for that payee. Add the name so the party is identified.

What to do
  1. Add the name in ram:PayeeTradeParty/ram:Name.
  2. Check the payee’s Name value, then regenerate the invoice and check it again.
What it looks like
✗ Triggers the message
<ram:PayeeTradeParty>
  <ram:ID>PAYEE-1</ram:ID>
</ram:PayeeTradeParty>
✓ Correct
<ram:PayeeTradeParty>
  <ram:ID>PAYEE-1</ram:ID>
  <ram:Name>Autre bénéficiaire</ram:Name>
</ram:PayeeTradeParty>
Check in FactoorSharp
  • FacturXInvoice.SetSeller(name, postcode, city, street, street2, country, id, globalID, legalOrganization, description, countrySubdivisonName, addressLine3) (BG-4)
  • FacturXInvoice.Seller (BG-4)
  • Party.Name (PayeeTradeParty: BT-59)
Technical details

The test requires ram:Name when none of the payee’s name, ram:ID, or ram:SpecifiedLegalOrganization/ram:ID matches the corresponding seller value.

Where the rule applies

The rule applies to ram:PayeeTradeParty and compares its details with those of the seller, ram:SellerTradeParty.

Context (rule/@context)
//ram:PayeeTradeParty
Test expression (assert/@test)
(ram:Name) and ( not(ram:Name = ../ram:SellerTradeParty/ram:Name) and not(ram:ID = ../ram:SellerTradeParty/ram:ID) and not(ram:SpecifiedLegalOrganization/ram:ID = ../ram:SellerTradeParty/ ram:SpecifiedLegalOrganization/ram:ID) )