# ibr-036

Source: https://xmlvalid.com/rules/ibr-036

> Charge (ibg-21) MUST have a charge amount (ibt-099).

- Level: error
- Rule sets: PINT Billing rules 1.1.3, PINT Billing rules (as shipped with PINT AE) 1.0.4
- Context: `cac:AllowanceCharge[cbc:ChargeIndicator = true()]`
- Test: `((exists(cbc:Amount) and not(ancestor::cac:InvoiceLine | ancestor::cac:CreditNoteLine))) or (ancestor::cac:InvoiceLine | ancestor::cac:CreditNoteLine)`

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