An Invoice shall contain the Buyer postal address (BG-8).
The XML is missing ram:PostalTradeAddress under ram:BuyerTradeParty. The buyer postal address (BG-8) is therefore not present.
The postal address is a required detail that provides the buyer’s address on the invoice.
The buyer’s postal address is missing from the invoice. Add the address element to the XML.
- Add
ram:PostalTradeAddressinsideram:BuyerTradeParty. - Generate the invoice again and validate it once more.
<ram:BuyerTradeParty/>
<ram:BuyerTradeParty> <ram:PostalTradeAddress/> </ram:BuyerTradeParty>
Technical details
The test checks whether a ram:PostalTradeAddress is present under a ram:BuyerTradeParty.
The rule applies to ram:PostalTradeAddress inside ram:BuyerTradeParty.
rule/@context)assert/@test)