An Invoice shall contain the Seller postal address (BG-5).
The ram:PostalTradeAddress element is missing from ram:SellerTradeParty. As a result, the invoice contains no seller postal address (BG-5).
The postal address is part of the seller’s information and must be included in the invoice.
The invoice is missing the seller’s postal address. You can resolve this by adding the address to the seller information.
- Add
ram:PostalTradeAddressinsideram:SellerTradeParty. - Generate the invoice again and validate it once more.
<ram:SellerTradeParty/>
<ram:SellerTradeParty> <ram:PostalTradeAddress/> </ram:SellerTradeParty>
Technical details
The XPath test looks for ram:PostalTradeAddress under ram:SellerTradeParty. The rule passes when that element is present.
The rule applies to the seller in the invoice and checks whether a ram:PostalTradeAddress is present there.
rule/@context)assert/@test)