# PEPPOL-EN16931-R054-SG

Source: https://xmlvalid.com/rules/PEPPOL-EN16931-R054-SG

> Only one tax total without tax subtotals MUST be provided when tax currency code is provided.

- Level: error
- Rule sets: PINT SG rules (Singapore) 1.4.1
- Context: `/ubl:Invoice | /cn:CreditNote`
- Test: `count(cac:TaxTotal[not(cac:TaxSubtotal)]) = (if (cbc:TaxCurrencyCode) then 1 else 0)`

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