VRBL-INV-EN16931-M-71
Basic Info
|
Rule
|
In an Invoice with a Tax Sub Total where the Tax Subtotal Category ID is "Intra-community supply" the Actual Delivery Date or the Invoice Period Group 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/cbc:ActualDeliveryDate) > 1 or (cac:InvoicePeriod/*))) or (not(cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[cac:TaxScheme/cbc:ID = 'VAT']/cbc:ID = 'K'))