Rules / IBR-002-AE
IBR-002-AE error
Currency exchange rate should contain the values till maximum of 6 decimal places
Currency exchange rate [BTAE-04] should contain the values till maximum of 6 decimal places.
Fails
<cbc:CalculationRate>ABC 123</cbc:CalculationRate>
Fix
Fix the value's format. The rule text says what shape it must have.
Schematron
- Context
cbc:CalculationRate- Test
matches(., concat('^[0-9]+(\.[0-9]', codepoints-to-string(123), '1,6', codepoints-to-string(125), ')?$'))
Official text: Currency exchange rate [BTAE-04] should contain the values till maximum of 6 decimal places.