# DT-CIUS-PT-139_1

Source: https://xmlvalid.com/rules/DT-CIUS-PT-139_1

> The BT-160 does not meet the defined format: it is mandatory to fill out with '#ID@INVOICEDOCUMENTREFERENCE@BILLINGREFERENCE-000#'. 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/cac:InvoiceLine/cac:Item/cac:AdditionalItemProperty/cbc:Name | //cn:CreditNote/cac:CreditNoteLine/cac:Item/cac:AdditionalItemProperty/cbc:Name`
- Test: `starts-with(normalize-space(.),'#ID@INVOICEDOCUMENTREFERENCE@BILLINGREFERENCE-') and not(matches(.,'^(#(ID@INVOICEDOCUMENTREFERENCE@BILLINGREFERENCE)-([0-9]{3})#)$'))`

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