DT-CIUS-PT-092.1

The BT-96 and BT-103 does not meet the defined format: decimal value with 2 decimal places and 3 unit places.

error: the document is invalid

What the rule checks

As the rule set's publisher wrote it. The rule runs on every element the context matches, and fails where the test is false; the validator reports the line of that element.

Context
//ubl:Invoice/cac:AllowanceCharge/cac:TaxCategory/cbc:Percent | //cn:CreditNote/cac:AllowanceCharge/cac:TaxCategory/cbc:Percent
Test
matches(.,'^(\d{1,3}\.\d{2})$')

Checked with Portugal CIUS-PT Invoice (UBL), Portugal CIUS-PT Credit Note (UBL)