Rules
Basic Info
|
Rule
|
When the Additional Document Reference Group is used as Free Trade Agreement, the Additional Document Reference Group expects a maximum of one Additional Document Reference Document Description. |
|
Context
|
/ubl:Invoice/cac:AdditionalDocumentReference
|
|
Pattern
|
vrbl-invoice-my-1p0 |
|
Severity
|
fatal |
Used Template: CountLessEqualOne
| Parameter |
|
Value |
| probe |
= |
cbc:DocumentDescription
|
Implementation
(
not(cbc:DocumentType = concat($VRBL-MY-Prefix, 'FreeTradeAgreement'))
)
or
(
count(cbc:DocumentDescription) <= 1
)