In order for the buyer to automatically identify a supplier, the Seller identifier (BT-29), the Seller legal registration identifier (BT-30) and/or the Seller VAT identifier (BT-31) shall be present.
The buyer cannot identify the seller because ram:SellerTradeParty contains none of the accepted identifiers. Neither ram:ID, ram:GlobalID, ram:SpecifiedLegalOrganization/ram:ID, nor a VAT identifier in ram:SpecifiedTaxRegistration/ram:ID with schemeID='VA' is present.
At least one seller identifier must be present so that the buyer can identify the supplier automatically. The rule accepts the seller identifier, the legal registration identifier, or the VAT identifier.
The seller details do not contain any of the identifiers accepted for identification. Add a seller identifier, a legal registration identifier, or a VAT identifier.
- Add a seller identifier, a legal registration identifier, or a VAT identifier to
ram:SellerTradeParty. - For the VAT identifier, check the call to
AddSellerTaxRegistration(...). - Generate the invoice again and validate it again.
<ram:SellerTradeParty/>
<ram:SellerTradeParty> <ram:ID>SELLER-123</ram:ID> </ram:SellerTradeParty>
FacturXInvoice.AddSellerTaxRegistration(no, schemeID)(BT-31)FacturXInvoice.GetSellerTaxRegistration()(BT-31)FacturXInvoice.SellerTaxRegistration(BT-31)GlobalID.SchemeID(Seller legal registration identifier: BT-30)TaxRegistration.SchemeID(For Seller VAT identifier: BT-31)
Technical details
The test passes if at least one of the four XPath expressions selects a value. For the tax registration, only ram:ID with schemeID='VA' is considered.
The rule applies to the seller details in ram:SellerTradeParty.
rule/@context)assert/@test)