# ibr-086

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

> End date of line period (ibt-135) MUST be within invoice period (ibg-14).

- Level: error
- Rule sets: PINT Billing rules 1.1.3, PINT Billing rules (as shipped with PINT AE) 1.0.4
- Context: `cac:InvoiceLine/cac:InvoicePeriod | cac:CreditNoteLine/cac:InvoicePeriod`
- Test: `(cbc:EndDate <= xs:date(../../cac:InvoicePeriod/cbc:EndDate)) or not(cbc:EndDate) or not(../../cac:InvoicePeriod/cbc:EndDate)`

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