BR-RO-211
Daca Adresa de livrare (BG-15) exista, trebuie furnizata Subdiviziunea tarii de livrare (BT-79). #If the Delivery to (BG-15) exists, the Deliver to country subdivision (BT-79) must exists.
What the rule checks
As the rule set's publisher wrote it. The rule runs on every element the context matches, and fails where the test is false; the validator reports the line of that element.
[BR-RO-210"] Daca Adresa de livrare (BG-15) exista, trebuie furnizata Subdiviziunea tarii de livrare (BT-79). #If the Delivery to (BG-15) exists, the Deliver to country subdivision (BT-79) must exists.
/ubl:Invoice/cac:Delivery/cac:DeliveryLocation/cac:Address | /ubl:CreditNote/cac:Delivery/cac:DeliveryLocation/cac:Address
cbc:CountrySubentity[boolean(normalize-space(.))]
Checked with Romania RO e-Factura Invoice (UBL), Romania RO e-Factura Credit Note (UBL)