SchemaGuard by Ironbark Digital · EN 16931 / Peppol / XRechnung Reference
← All 294 EN 16931 / Peppol Rules & Live Validator
FATAL Official EN 16931 / Peppol / CIUS Rule BT/BG Fields: BT-131

BR-24 — E-Invoice Validation Rule & Fix

Fixture ID: lineBaseQuantityZero · XPath: /ubl:Invoice/cac:InvoiceLine[1]/cbc:LineExtensionAmount

1. Why This Rule Triggers (Diagnostic Message)

Line 1 (id "1") has no invoice line net amount (BT-131), because the item price base quantity (BT-149) is 0, and dividing by it is undefined. BT-131 is not an input in this model — it is derived as invoiced quantity (BT-129) x item net price (BT-146) / item price base quantity (BT-149) — so a factor that makes the division impossible removes the line amount, and with it the document totals and the whole VAT breakdown.

2. How to Fix BR-24

Set line.baseQuantity to the number of units the price refers to, and never to zero. Use 1 (the default) when the price is per single unit; use 100 when you quote "€12.50 per 100 sheets" with quantity in sheets. Omit the field entirely if you are not pricing per bundle.

3. Valid Code / Payload Example

"quantity": 500, "unitPrice": 12.5, "baseQuantity": 100
Test & Validate XML / JSON in Live SchemaGuard Validator →