# F-CRN203

Source: https://xmlvalid.com/rules/F-CRN203

> AllowanceCharge.Amount can not be negative, if CreditedQuantity or Price.PriceAmount is not negative.

- Level: error
- Rule sets: OIOUBL 2.1 Credit Note rules (Denmark) 1.17.2
- Context: `doc:CreditNote/cac:CreditNoteLine`
- Test: `not($NegativeLEA or $NegativePA) and $NegativeAllowanceAmount`

> cbc:ID must contain a value.

- Level: error
- Rule sets: OIOUBL 2.1 Credit Note rules (Denmark) 1.17.2
- Context: `doc:CreditNote/cac:CreditNoteLine/cac:Item/cac:Certificate/cbc:ID`
- Test: `normalize-space(.) != ''`

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