Each Deliver to address (BG-15) shall contain a Deliver to country code (BT-80).
If ShipToTradeParty/PostalTradeAddress is present, the delivery address does not contain a non-empty CountryID. The delivery address country code (BT-80) is missing.
The country code identifies the country of the delivery address and is required when a delivery address is provided.
The invoice contains a delivery address without a country code. Add the country code to complete the delivery address.
- Check
ShipToTradeParty/PostalTradeAddress. - Add
CountryIDthere with the country code for the delivery address. - Check the value of
Party.Country. - Generate the invoice again and validate it.
<ram:ShipToTradeParty> <ram:PostalTradeAddress> <ram:CountryID/> </ram:PostalTradeAddress> </ram:ShipToTradeParty>
<ram:ShipToTradeParty> <ram:PostalTradeAddress> <ram:CountryID>DE</ram:CountryID> </ram:PostalTradeAddress> </ram:ShipToTradeParty>
Party.Country(ShipToTradeParty: BT-80)
Technical details
The XPath test passes if no PostalTradeAddress is present, or if CountryID is not an empty string when the address is present.
The rule applies to the delivery address under ShipToTradeParty in the invoice's delivery information.
rule/@context)assert/@test)