Tools › SmartFormular E-Rechnung lite › Validation rules › PEPPOL-EN16931-R040
PEPPOL-EN16931-R040
An allowance or charge is not base amount times percentage
What the message means
An allowance or charge is not base amount times percentage.
What the issuer needs to change
Make amount, base amount and percentage consistent.
This rule is part of XRechnung, even though its name starts with PEPPOL.
Your invoice reports PEPPOL-EN16931-R040? Check it with SmartFormular E-Rechnung lite, free to try until 31 December 2026: the tool shows every finding with an explanation, the invoice in readable form and a GiroCode to pay – in your browser, no upload.
Check an e-invoiceOrigin
- Rule set
- XRechnung 3.0.2 (KoSIT, Schematron 2.6.0)
- Syntax
- CII, UBL
- Level
- Error
Original rule text
Allowance/charge amount must equal base amount * percentage/100 if base amount and percentage exists
Technical details for IT
UBL
Context: ubl-invoice:Invoice/cac:AllowanceCharge | ubl-invoice:Invoice/cac:InvoiceLine/cac:AllowanceCharge | ubl-creditnote:CreditNote/cac:AllowanceCharge | ubl-creditnote:CreditNote/cac:CreditNoteLine/cac:AllowanceCharge Test: not(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))
CII
Context: ram:SpecifiedTradeAllowanceCharge Test: not(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))
Related rules
- PEPPOL-EN16931-R008The file contains empty elements
- PEPPOL-EN16931-R010The buyer's electronic address (BT-49) is missing: the address e-invoices are sent to, such as an email …
- PEPPOL-EN16931-R020The seller's electronic address (BT-34) is missing: the address where the seller receives e-invoices, such as …
- PEPPOL-EN16931-R041An allowance or charge has a percentage but no base amount
- PEPPOL-EN16931-R042An allowance or charge has a base amount but no percentage
- PEPPOL-EN16931-R043It is unclear whether an entry is an allowance or a charge