PEPPOL-EN16931-R046 A line states an item gross price (BT-148) of 100 and an item price discount (BT-147) of 10, so the item net price (BT-146) must be 90 — but it is 91
Line 1 states an item gross price (BT-148) of 100 and an item price discount (BT-147) of 10, so the item net price (BT-146) must be 90 — but it is 91. Peppol requires the identity BT-146 = BT-148 − BT-147 exactly, with no tolerance at all, because these three terms are a single statement written three ways: the list price, what you took off it, and what you actually charged. Two of them disagreeing does not make the third ambiguous, it makes the line untrue. Note that BT-146 is the price the line total is computed from; BT-148 is disclosure. 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-146 / BT-147 / BT-148- 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-R046",
"field": [
"BT-146",
"BT-147",
"BT-148"
],
"severity": "fatal",
"message": "Line 1 states an item gross price (BT-148) of 100 and an item price discount (BT-147) of 10, so the item net price (BT-146) must be 90 — but it is 91. Peppol requires the identity BT-146 = BT-148 − BT-147 exactly, with no tolerance at all, because these three terms are a single statement written three ways: the list price, what you took off it, and what you actually charged. Two of them disagreeing does not make the third ambiguous, it makes the line untrue. Note that BT-146 is the price the line total is computed from; BT-148 is disclosure. 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 lines[0].unitPrice to 90, or adjust grossUnitPrice / priceDiscount so the three agree. If there is no discount to disclose, drop grossUnitPrice and priceDiscount and state unitPrice alone — the group is optional.",
"example": "\"unitPrice\": 90, \"grossUnitPrice\": 100, \"priceDiscount\": 10",
"xpath": "/ubl:Invoice/cac:InvoiceLine[1]/cac:Price/cbc:PriceAmount",
"docsUrl": "https://attestwire.com/rules/PEPPOL-EN16931-R046"
}
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
"unitPrice": 90, "grossUnitPrice": 100, "priceDiscount": 10The fix
Set lines[0].unitPrice to 90, or adjust grossUnitPrice / priceDiscount so the three agree. If there is no discount to disclose, drop grossUnitPrice and priceDiscount and state unitPrice alone — the group is optional.