VRBL-INV-PL-B2B-2-48
Basic Info
|
Rule
|
The Invoice Line Extension Amount must have a maximum of 16 digits before the decimal separator, and a maximum of 2 digits after the decimal separator. |
|
Context
|
/ubl:Invoice/cac:InvoiceLine/cbc:LineExtensionAmount
|
|
Pattern
|
vrbl-invoice-pl-b2b-2p0 |
|
Severity
|
fatal |
Used Template: VRBL-NumberFormat
| Parameter |
|
Value |
| probe |
= |
.
|
| maxDigitsBeforeDecimalSeparator |
= |
16
|
| maxDigitsAfterDecimalSeparator |
= |
2
|
Implementation
(
16
>=
string-length(
substring-before(
concat(
.,
substring(
'.',
number(not(contains(., '.'))),
1
)
),
'.'
)
)
)
and
(
2
>=
string-length(
substring-after(
concat(
.,
substring(
'.',
number(not(contains(., '.'))),
1
)
),
'.'
)
)
)