VRBL-INV-EN16931-M-72
Basic Info
|
Rule
|
In an Invoice with a Tax Sub Total where the Tax Subtotal Category ID is "Intra-community supply" the Delivery Location Country Identification Code must not be blank. |
|
Context
|
/ubl:Invoice
|
|
Pattern
|
vrbl-invoice-en16931-ubl-model |
|
Severity
|
fatal |
Implementation
(boolean(cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[cac:TaxScheme/cbc:ID = 'VAT']/cbc:ID = 'K') and (string-length(cac:Delivery/cac:DeliveryLocation/cac:Address/cac:Country/cbc:IdentificationCode) >1)) or (not(boolean(cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[cac:TaxScheme/cbc:ID = 'VAT']/cbc:ID = 'K')))