XV-MY-05
A document in another currency than MYR needs the exchange rate to MYR: cac:TaxExchangeRate with cbc:CalculationRate, the document currency as SourceCurrencyCode and MYR as TargetCurrencyCode. This one is in ….
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
/*
Test
$currency = ('', 'MYR') or normalize-space($rate/cbc:CalculationRate) ne ''
Checked with MyInvois e-Invoice