# DT-CIUS-PT-020_6.3

Source: https://xmlvalid.com/rules/DT-CIUS-PT-020_6.3

> The BT-22 when prefixed with '#NUMBER@ATCERTIFIEDPROGRAM#', is mandatory if an element with the prefix '#HASHCODE@ATCERTIFIEDPROGRAM#' or '#DESCRIPTION@ATCERTIFIEDPROGRAM#' has been or will be referenced.

- Level: error
- Rule sets: CIUS-PT rules (Portugal, UBL) 2.1.1
- Context: `//ubl:Invoice/cbc:Note | //cn:CreditNote/cbc:Note`
- Test: `(starts-with(normalize-space(.),'#HASHCODE@ATCERTIFIEDPROGRAM#') or starts-with(normalize-space(.),'#DESCRIPTION@ATCERTIFIEDPROGRAM#')) and $cnt20_6 < 1`

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