VRBL-STM-MX-1p0-36
Basic Info
|
Rule
|
The Statement Line Statement Line Extension Payment Paid Amount must have no more decimals than allowed by the Statement Line Statement Line Extension Payment Paid Amount Currency ID. |
|
Context
|
/ubl:Statement/cac:StatementLine/cec:UBLExtensions/cec:UBLExtension/cec:ExtensionContent/vrbl:StatementLineExtension/cac:Payment/cbc:PaidAmount
|
|
Pattern
|
vrbl-payments-mx-1p0 |
|
Severity
|
fatal |
Used Template: DecimalsViaLookup
| Parameter |
|
Value |
| probe |
= |
.
|
| key |
= |
@currencyID
|
| lookup |
= |
$VRBL-CL-MX-CurrencyCode-AllowedDecimals
|
Implementation
string-length(substring-after(., '.')) <= number(substring-before(substring-after($VRBL-CL-MX-CurrencyCode-AllowedDecimals, concat('|', @currencyID, ':')), '|'))