# BR-FREXT-22

Source: https://xmlvalid.com/rules/BR-FREXT-22

> Each Invoice line (BG-25) shall have an Invoiced quantity (BT-129), if the "Subtype of invoice line item" (EXT-FR-FE-163 / BT-X-8) has the value "DETAIL" or is not specified..

- Level: error
- Rule sets: EXTENDED-CTC-FR rules (UBL) 1.4.0.04
- Context: `cac:InvoiceLine | cac:CreditNoteLine`
- Test: `not($lineInCalul) or (exists(cbc:InvoicedQuantity) or exists(cbc:CreditedQuantity))`

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