XRechnung 2.6.0 · UBL

PEPPOL-EN16931-R040

XRechnung 2.6.0 · UBL

fatalformat

Original rule text

[PEPPOL-EN16931-R040]-Allowance/charge amount must equal base amount * percentage/100 if base amount and percentage exists

Stored validation assertion
not(cbc:MultiplierFactorNumeric and cbc:BaseAmount) or u:slack(if (cbc:Amount) then cbc:Amount else 0, (xs:decimal(cbc:BaseAmount) * xs:decimal(cbc:MultiplierFactorNumeric)) div 100, $slackValue)