How to fix PEPPOL-EN16931-R040
Allowance/charge amount must equal base amount * percentage/100 if base amount and percentage exists.
What this rule checks
When an allowance or charge has both a base amount (cbc:BaseAmount) and a percentage (cbc:MultiplierFactorNumeric), its amount (cbc:Amount) must equal base amount × percentage / 100. The validator accepts a difference of up to 0.02. The rule applies to document-level and line-level allowances and charges. If the percentage is missing, you get PEPPOL-EN16931-R042 instead; if the base amount is missing, PEPPOL-EN16931-R041.
How to fix it
Ensure cbc:Amount equals cbc:BaseAmount times cbc:MultiplierFactorNumeric divided by 100 within cac:AllowanceCharge. Correct whichever value is wrong.
Common causes
- The percentage is written as a fraction (0.10) instead of a percentage (10).
- The base amount was changed (for example after a line was removed), but the amount was not calculated again.
- The amount was calculated from a different base, such as the gross total instead of the line or document net amount given in
cbc:BaseAmount.
Example: before (broken)
<cac:AllowanceCharge>
<cbc:ChargeIndicator>false</cbc:ChargeIndicator>
<cbc:AllowanceChargeReason>Discount</cbc:AllowanceChargeReason>
<cbc:MultiplierFactorNumeric>10</cbc:MultiplierFactorNumeric>
<!-- 200.00 × 10 / 100 = 20.00, not 25.00 -->
<cbc:Amount currencyID="EUR">25.00</cbc:Amount>
<cbc:BaseAmount currencyID="EUR">200.00</cbc:BaseAmount>
</cac:AllowanceCharge>Example: after (fixed)
<cac:AllowanceCharge>
<cbc:ChargeIndicator>false</cbc:ChargeIndicator>
<cbc:AllowanceChargeReason>Discount</cbc:AllowanceChargeReason>
<cbc:MultiplierFactorNumeric>10</cbc:MultiplierFactorNumeric>
<cbc:Amount currencyID="EUR">20.00</cbc:Amount>
<cbc:BaseAmount currencyID="EUR">200.00</cbc:BaseAmount>
</cac:AllowanceCharge>Related rules
Rule sets
PEPPOL-EN16931-R040 is in these rule sets. Each page lists all its rules and the pinned version.
Validate your invoice
Upload your corrected invoice to check it passes PEPPOL-EN16931-R040 and all other EN 16931 and Peppol BIS 3.0 rules. Free, instant, no signup.