PEPPOL-EN16931-R041 The document level allowance states a percentage of 5% but no base amount
The document level allowance states a percentage of 5% but no base amount. Peppol requires the base whenever the percentage is present, because a percentage on its own is not checkable: the reader can see that you claim 5% and cannot see 5% *of what*, so the amount has to be taken on trust. With both terms present, PEPPOL-EN16931-R040 can verify that the amount is what the percentage produces. Core EN 16931 leaves both optional and independent; this is a genuine tightening. This is a Peppol BIS Billing 3.0 profile rule: it applies because profile is "peppol-bis-3". It does not apply to the en16931, xrechnung-ubl or xrechnung-cii profiles, whose validators will accept the same document.
This rule is implemented and its error payload below is real, but the long-form write-up — normative text, worked example, divergence note — is not written yet. Everything the library knows about this rule is on this page. Ask and we will prioritise it.
- Business term
BT-93 / BT-94- Severity
fatal
What the library returns
The exact object in result.errors when this rule fires.
Generated by running @attestwire/en16931, not transcribed:
{
"rule": "PEPPOL-EN16931-R041",
"field": [
"BT-93",
"BT-94"
],
"severity": "fatal",
"message": "The document level allowance states a percentage of 5% but no base amount. Peppol requires the base whenever the percentage is present, because a percentage on its own is not checkable: the reader can see that you claim 5% and cannot see 5% *of what*, so the amount has to be taken on trust. With both terms present, PEPPOL-EN16931-R040 can verify that the amount is what the percentage produces. Core EN 16931 leaves both optional and independent; this is a genuine tightening. This is a Peppol BIS Billing 3.0 profile rule: it applies because profile is \"peppol-bis-3\". It does not apply to the en16931, xrechnung-ubl or xrechnung-cii profiles, whose validators will accept the same document.",
"fix": "Set allowances[0].baseAmount to the figure the percentage is applied to, or drop allowances[0].percentage and state the amount alone. Note that the base is not necessarily the line or document total — it is whatever your commercial agreement computes the discount on.",
"example": "{ \"amount\": 50.00, \"baseAmount\": 1000.00, \"percentage\": 5, \"reason\": \"Volume discount\" }",
"xpath": "/ubl:Invoice/cac:AllowanceCharge[1]/cbc:BaseAmount",
"docsUrl": "https://attestwire.com/rules/PEPPOL-EN16931-R041"
}
xpath locates the element in the generated UBL document,
which is where a KoSIT or Peppol validator will report the same problem.
A passing value
{ "amount": 50.00, "baseAmount": 1000.00, "percentage": 5, "reason": "Volume discount" }The fix
Set allowances[0].baseAmount to the figure the percentage is applied to, or drop allowances[0].percentage and state the amount alone. Note that the base is not necessarily the line or document total — it is whatever your commercial agreement computes the discount on.