VRBL-INV-MY-1p0-105
Basic Info
| Rule | The Invoice Line Group expects Invoice Line Tax exactly once when Document Currency Code is MYR and twice when it is not MYR. |
| Context |
/ubl:Invoice/cac:InvoiceLine
|
| Pattern | vrbl-invoice-my-1p0 |
| Severity | fatal |
Implementation
(count(cac:TaxTotal) = 1 and ../cbc:DocumentCurrencyCode = 'MYR') or (count(cac:TaxTotal) = 2 and ../cbc:DocumentCurrencyCode != 'MYR' and ../cbc:TaxCurrencyCode = 'MYR')