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