XRechnung 2.4.0 · CII

PEPPOL-EN16931-R040

XRechnung 2.4.0 · CII

fatalformat

Original rule text

Allowance/charge amount must equal base amount * percentage/100 if base amount and percentage exists

Stored validation assertion
not(ram:CalculationPercent and ram:BasisAmount) or u:slack(if (ram:ActualAmount) then ram:ActualAmount else 0, (xs:decimal(ram:BasisAmount) * xs:decimal(ram:CalculationPercent)) div 100, $slackValue)