# BR-24

Source: https://xmlvalid.com/rules/BR-24

> Each Invoice line (BG-25) shall have an Invoice line net amount (BT-131).

- Level: error
- Rule sets: EN 16931 rules (UBL) 1.3.17, EN 16931 rules 1.3.16 (UBL), Romanian RO e-Factura rules (UBL) 1.0.9
- Context: `cac:InvoiceLine | cac:CreditNoteLine`
- Test: `exists(cbc:LineExtensionAmount)`

> Each Invoice line (BG-25) shall have an Invoice line net amount (BT-131).

- Level: error
- Rule sets: EN 16931 rules (CII) 1.3.17, EN 16931 rules 1.3.16 (CII), Factur-X EN 16931 rules 1.09.2
- Context: `//ram:IncludedSupplyChainTradeLineItem`
- Test: `(ram:SpecifiedLineTradeSettlement/ram:SpecifiedTradeSettlementLineMonetarySummation/ram:LineTotalAmount)`

## Why it fails

- A line has no `cbc:LineExtensionAmount` (`ram:LineTotalAmount` in CII).

## How to fix it

- Add the line net amount (BT-131): quantity × net price, plus line charges, minus line allowances, without VAT.

Validate a document against these rules: https://xmlvalid.com/validate
