PEPPOL-EN16931-R120: Invoice line net amount MUST equal (Invoiced quantity * (Item net price/item price base quantity) + Sum of invoice line charge amount - sum of invoice line allowance amount
1. Technical Specification & XPath Evaluation Context
Schematron rule PEPPOL-EN16931-R120 (FATAL) enforces the EN 16931 / OpenPeppol assertion "Invoice line net amount MUST equal (Invoiced quantity * (Item net price/item price base quantity) + Sum of invoice line charge amount - sum of invoice line allowance amount". During validation at context node `cac:InvoiceLine | cac:CreditNoteLine`, the XSLT/Schematron engine evaluates the XPath boolean expression `u:slack($lineExtensionAmount, ($quantity * ($priceAmount div $baseQuantity)) + $chargesTotal - $allowancesTotal, 0.02)`. If this expression evaluates to false, the receiving Peppol Access Point or tax authority gateway rejects the UBL-2.1 document immediately.
1. Inspect the UBL 2.1 node at XPath `cac:InvoiceLine | cac:CreditNoteLine`. 2. Ensure the XML payload satisfies the Schematron assertion `u:slack($lineExtensionAmount, ($quantity * ($priceAmount div $baseQuantity)) + $chargesTotal - $allowancesTotal, 0.02)` (Invoice line net amount MUST equal (Invoiced quantity * (Item net price/item price base quantity) + Sum of invoice line charge amount - sum of invoice line allowance amount). 3. Validate that all required child tags, @currencyID / @schemeID attributes, and decimal totals match EN 16931-1 before dispatching to the Peppol network.
2. Side-by-Side Payload Diff: Failing vs. Compliant UBL-2.1 XML
Compare the rejected payload triggering PEPPOL-EN16931-R120 against the EN 16931 compliant structure.
<Invoice xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2"
xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2"
xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2">
<!-- Context XPath: cac:InvoiceLine | cac:CreditNoteLine -->
<!-- VIOLATION [PEPPOL-EN16931-R120]: Fails test="u:slack($lineExtensionAmount, ($quantity * ($priceAmount div $baseQuantity)) + $chargesTotal - $allowancesTotal, 0.02)" -->
<cbc:CustomizationID>urn:cen.eu:en16931:2017#compliant#urn:fdc:peppol.eu:2017:poacc:billing:3.0</cbc:CustomizationID>
<cbc:ProfileID>urn:fdc:peppol.eu:2017:poacc:billing:01:1.0</cbc:ProfileID>
<cbc:ID>INV-2026-7710</cbc:ID>
<cbc:IssueDate>2026-11-16</cbc:IssueDate>
<cbc:InvoiceTypeCode>380</cbc:InvoiceTypeCode>
<cbc:DocumentCurrencyCode>EUR</cbc:DocumentCurrencyCode>
<cac:LegalMonetaryTotal>
<cbc:LineExtensionAmount currencyID="EUR">100.00</cbc:LineExtensionAmount>
<cbc:TaxExclusiveAmount currencyID="EUR">100.00</cbc:TaxExclusiveAmount>
<cbc:TaxInclusiveAmount currencyID="EUR">119.00</cbc:TaxInclusiveAmount>
<cbc:PayableAmount currencyID="EUR">115.00</cbc:PayableAmount>
</cac:LegalMonetaryTotal>
</Invoice> <Invoice xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2"
xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2"
xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2">
<!-- Context XPath: cac:InvoiceLine | cac:CreditNoteLine -->
<!-- COMPLIANT [PEPPOL-EN16931-R120]: Satisfies test="u:slack($lineExtensionAmount, ($quantity * ($priceAmount div $baseQuantity)) + $chargesTotal - $allowancesTotal, 0.02)" -->
<cbc:CustomizationID>urn:cen.eu:en16931:2017#compliant#urn:fdc:peppol.eu:2017:poacc:billing:3.0</cbc:CustomizationID>
<cbc:ProfileID>urn:fdc:peppol.eu:2017:poacc:billing:01:1.0</cbc:ProfileID>
<cbc:ID>INV-2026-7710</cbc:ID>
<cbc:IssueDate>2026-11-16</cbc:IssueDate>
<cbc:InvoiceTypeCode>380</cbc:InvoiceTypeCode>
<cbc:DocumentCurrencyCode>EUR</cbc:DocumentCurrencyCode>
<cbc:BuyerReference>991-12849-74</cbc:BuyerReference>
<cac:LegalMonetaryTotal>
<cbc:LineExtensionAmount currencyID="EUR">100.00</cbc:LineExtensionAmount>
<cbc:TaxExclusiveAmount currencyID="EUR">100.00</cbc:TaxExclusiveAmount>
<cbc:TaxInclusiveAmount currencyID="EUR">119.00</cbc:TaxInclusiveAmount>
<cbc:PayableAmount currencyID="EUR">119.00</cbc:PayableAmount>
</cac:LegalMonetaryTotal>
</Invoice> 3. Interactive Peppol BIS Billing 3.0 Validator & Auto-Remediation Sandbox
Pre-loaded with the failing PEPPOL-EN16931-R120 snippet above, or drop your own UBL / ZUGFeRD PDF/A-3 invoice to test in-browser.
No <cbc:BuyerReference> (BT-10) found. Mandatory in XRechnung 3.0 (BR-DE-15) and required in Peppol BIS 3.0 (PEPPOL-EN16931-R003) when OrderReference is absent.
Remediation: Insert <cbc:BuyerReference>991-12849-74</cbc:BuyerReference> in the document header.
Related EN 16931 & Peppol BIS Billing 3.0 Schematron Rules
Batch Validate 1,000+ XML Files →French Seller SIREN/SIRET identifier (BT-30) with schemeID 0002 is mandatory for Factur-X
Invoice total amount with VAT (BT-112) = Invoice total amount without VAT (BT-109) + Invoice total VAT amount (BT-110).
Buyer reference / Leitweg-ID (BT-10) is strictly mandatory in XRechnung
Invoice total amount without VAT (BT-109) = Σ Invoice line net amount (BT-131) - Sum of allowances on document level (BT-107) + Sum of charges on document level (BT-108).
An Invoice shall have an Invoice number (BT-1).