# BR-FXEXT-BR-23

Source: https://xmlvalid.com/rules/BR-FXEXT-BR-23

> An Invoice line (BG-25) shall have an Invoiced quantity unit of measure code (BT-130) if the "Subtype of invoice line item" (BT-X-8) has the value "Normal line item (standard case)" (DETAIL) or is not specified.

- Level: error
- Rule sets: Factur-X EXTENDED rules 1.09.2
- Context: `//ram:IncludedSupplyChainTradeLineItem/ram:AssociatedDocumentLineDocument[not(ram:LineStatusReasonCode) or ram:LineStatusReasonCode = 'DETAIL']`
- Test: `(../ram:SpecifiedLineTradeDelivery/ram:BilledQuantity/@unitCode)`

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