Rules
Basic Info
|
Rule
|
The Invoice Line expects a maximum of one Line Document Reference where Invoice Line Document Reference Document Type Code is '130'. |
|
Context
|
/ubl:Invoice/cac:InvoiceLine
|
|
Pattern
|
vrbl-invoice-peppol-pint |
|
Severity
|
fatal |
Used Template: CountLessEqualOne
| Parameter |
|
Value |
| probe |
= |
cac:DocumentReference[cbc:DocumentTypeCode = '130']
|
| displayName_probe |
= |
%{cac:DocumentReference} where %{cac:DocumentReference/cbc:DocumentTypeCode} is '130'
|
Implementation
count(cac:DocumentReference[cbc:DocumentTypeCode = '130']) <= 1