The Payee name (BT-59) shall be provided in the Invoice, if the Payee (BG-10) is different from the Seller (BG-4).
PayeeTradeParty/Name is missing. The test requires it when the payee's name, ID, and SpecifiedLegalOrganization/ID each differ from the corresponding seller details.
When the payee and seller differ in the details being compared, the payee must be identified by name.
The payee differs from the seller in the details being checked, but the payee's name is missing. Add the payee's name.
- Add the name in
PayeeTradePartyusingParty.Name. - Check that the payee's name,
ID, andSpecifiedLegalOrganization/IDdo not match the seller's details. - Regenerate the invoice and validate it again.
<ram:PayeeTradeParty> <ram:ID>PAYEE-2</ram:ID> <ram:SpecifiedLegalOrganization> <ram:ID>LEGAL-2</ram:ID> </ram:SpecifiedLegalOrganization> </ram:PayeeTradeParty> <ram:SellerTradeParty> <ram:Name>Seller One</ram:Name> <ram:ID>SELLER-1</ram:ID> <ram:SpecifiedLegalOrganization> <ram:ID>LEGAL-1</ram:ID> </ram:SpecifiedLegalOrganization> </ram:SellerTradeParty>
<ram:PayeeTradeParty> <ram:Name>Payee Two</ram:Name> <ram:ID>PAYEE-2</ram:ID> <ram:SpecifiedLegalOrganization> <ram:ID>LEGAL-2</ram:ID> </ram:SpecifiedLegalOrganization> </ram:PayeeTradeParty> <ram:SellerTradeParty> <ram:Name>Seller One</ram:Name> <ram:ID>SELLER-1</ram:ID> <ram:SpecifiedLegalOrganization> <ram:ID>LEGAL-1</ram:ID> </ram:SpecifiedLegalOrganization> </ram:SellerTradeParty>
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 PayeeTradeParty/Name and also checks that its Name, ID, and SpecifiedLegalOrganization/ID do not match the corresponding seller values.
The rule applies within PayeeTradeParty. It compares the payee with SellerTradeParty using Name, ID, and SpecifiedLegalOrganization/ID.
rule/@context)assert/@test)