# F-CRN071

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

> PayableRoundingAmount is mandatory when TaxTotal/RoundingAmount elements are present

- Level: error
- Rule sets: OIOUBL 2.1 Credit Note rules (Denmark) 1.17.2
- Context: `doc:CreditNote/cac:LegalMonetaryTotal`
- Test: `count(../cac:TaxTotal/cbc:RoundingAmount) and not(cbc:PayableRoundingAmount)`

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