# DT-CIUS-PT-020_10.1

Source: https://xmlvalid.com/rules/DT-CIUS-PT-020_10.1

> The BT-22 does not meet the defined format: it is mandatory to prefix the value with the following '#WITHHOLDINGTAXAMOUNT@WITHHOLDINGTAX-000#' and suffice with '#'. The sub-suffix "-000" must be used as a group of elements.

- 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(.),'#WITHHOLDINGTAXAMOUNT@WITHHOLDINGTAX-') and not(matches(.,'^(#(WITHHOLDINGTAXAMOUNT@WITHHOLDINGTAX)-([0-9]{3})#(.+)#)$'))`

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