VRBL-INV-PT-2p1-153

Basic Info

Rule The Allowance Amount must equal the multiplication between the Allowance Base Amount and the Allowance Multiplier Factor Numeric, with an acceptance range of 1.00 EURO (it does not mean that this tolerance is accepted by the customer).
Context /ubl:Invoice/cac:AllowanceCharge[string(cbc:ChargeIndicator) = 'false']
Pattern vrbl-invoice-pt-2p1
Severity fatal

Implementation

(not(boolean(cbc:MultiplierFactorNumeric)) and not(boolean(cbc:BaseAmount))) 
			or (((cbc:BaseAmount * (cbc:MultiplierFactorNumeric div 100) * 10 * 10) div 100) <= (cbc:Amount + 1.00) 
			and ((cbc:BaseAmount * (cbc:MultiplierFactorNumeric div 100) * 10 * 10) div 100) >= (cbc:Amount - 1.00))