DT-CIUS-PT-104.1

The BT-117 does not meet the defined format: decimal value with 2 decimal places and 13 unit places, than can be negative.

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:TaxTotal/cac:TaxSubtotal/cbc:TaxAmount | //cn:CreditNote/cac:TaxTotal/cac:TaxSubtotal/cbc:TaxAmount
Test
matches(.,'^(-?\d{1,13}\.\d{2})$')

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