VRBL-INV-MY-1p0-121
Basic Info
| Rule | If the Document Currency Code does not equal 'MYR', then two Tax Total Group groups must be provided. The first one with full VAT breakdown in foreign currency second one with full VAT breakdown in 'MYR'. |
| Context |
/ubl:Invoice
|
| Pattern | vrbl-invoice-my-1p0 |
| Severity | fatal |
Implementation
cbc:DocumentCurrencyCode = 'MYR'
or
(
boolean(cac:TaxTotal/cbc:TaxAmount[@currencyID = 'MYR'])
and
boolean(cac:TaxTotal/cbc:TaxAmount[@currencyID != 'MYR'])
)