Rules
VRBL-INV-TR-1p2-82
Basic Info
| Rule | If the Invoice Type Code is VRBL:TR:SARJ or VRBL:TR:SARJANLIK, at least one Invoicing Period must contain valid Invoicing Period Start Date, Invoice Period Start Time, Invoicing Period End Date and Invoice Period End Time values. |
| Context |
/ubl:Invoice
|
| Pattern | vrbl-invoice-tr-1p2 |
| Severity | fatal |
Implementation
not(
cbc:InvoiceTypeCode = concat($VRBL-TR-Prefix, 'SARJ')
or
cbc:InvoiceTypeCode = concat($VRBL-TR-Prefix, 'SARJANLIK')
)
or
(
count(cac:InvoicePeriod) >= 1
and
count(cac:InvoicePeriod[boolean(cbc:StartDate) and boolean(cbc:StartTime) and boolean(cbc:EndDate) and boolean(cbc:EndTime)]) = count(cac:InvoicePeriod)
)