BR-103-GST-SG

When providing Total Amount including GST in SGD, element ID must be set to the code value SGD

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
cac:AdditionalDocumentReference[cbc:DocumentTypeCode]
Test
(cbc:DocumentTypeCode='sgdtotal-incl-gst' and cbc:ID='SGD') or cbc:DocumentTypeCode != 'sgdtotal-incl-gst'

Checked with PINT SG Invoice, PINT SG Credit Note