VRBL-INV-SA-1p2-77

Basic Info

Rule The Allowance Charge Amount must be equal Allowance Charge Base Amount * Allowance Charge Multiplier Factor Numeric divide 100. If the Allowance Charge Base Amount and Allowance Charge Multiplier Factor Numeric exists.
Context /ubl:Invoice/cac:AllowanceCharge
Pattern vrbl-invoice-sa-1p2
Severity fatal

Implementation

count(cbc:BaseAmount)=0 or count(cbc:MultiplierFactorNumeric)=0 or (round(cbc:Amount * 100) >= (round(cbc:BaseAmount * cbc:MultiplierFactorNumeric)) - 1 and round(cbc:Amount * 100) <= (round(cbc:BaseAmount * cbc:MultiplierFactorNumeric)) + 1)