fatalEN 16931EN 16931 business ruleCIIUBLBG-11BT-63
Each Seller tax representative party (BG-11) shall have a Seller tax representative VAT identifier (BT-63).
A seller tax representative party (BG-11) has no VAT identifier (BT-63).
Add the representative's VAT identifier with its country prefix. The whole point of the group is the VAT number, so without it the group is meaningless - remove it if there is no representative.
CII — context $Tax_Representative
normalize-space(ram:SpecifiedTaxRegistration/ram:ID[@schemeID='VA']) != ''
UBL — context cac:TaxRepresentativeParty
exists(cac:PartyTaxScheme[cac:TaxScheme/(normalize-space(upper-case(cbc:ID)) = 'VAT')]/cbc:CompanyID)