VRBL-INV-RO-1p0-101

Basic Info

Rule The Price Allowance Amount must have no more than 2 decimals.
Context /ubl:Invoice/cac:InvoiceLine/cac:Price/cac:AllowanceCharge[string(cbc:ChargeIndicator) = 'false']/cbc:Amount
Pattern vrbl-invoice-ro-1p0
Severity fatal

Used Template: Decimals

Parameter Value
probe = .
decimals = 2

Implementation

string-length(substring-after(., '.')) <= 2