PEPPOL-EN16931-R042 The document level charge states a base amount of 1000 but no percentage
The document level charge states a base amount of 1000 but no percentage. Peppol requires the pair to travel together in both directions: a base amount with no percentage names a figure the document then does nothing with, which reads as an incomplete edit rather than a statement. If the adjustment is a flat sum, it has no base — the amount is the whole of it. 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-100 / BT-101- 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-R042",
"field": [
"BT-100",
"BT-101"
],
"severity": "fatal",
"message": "The document level charge states a base amount of 1000 but no percentage. Peppol requires the pair to travel together in both directions: a base amount with no percentage names a figure the document then does nothing with, which reads as an incomplete edit rather than a statement. If the adjustment is a flat sum, it has no base — the amount is the whole of it. 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 charges[0].percentage to the rate applied to the base, or drop charges[0].baseAmount if the adjustment is a flat amount rather than a proportion.",
"example": "{ \"amount\": 50.00, \"baseAmount\": 1000.00, \"percentage\": 5, \"reason\": \"Volume discount\" }",
"xpath": "/ubl:Invoice/cac:AllowanceCharge[1]/cbc:MultiplierFactorNumeric",
"docsUrl": "https://attestwire.com/rules/PEPPOL-EN16931-R042"
}
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 charges[0].percentage to the rate applied to the base, or drop charges[0].baseAmount if the adjustment is a flat amount rather than a proportion.