VRBL-INV-SA-1p2-80

Basic Info

Rule All currency ID attributes in Allowance Charge Group must have the same value as the Document Currency Code.
Context /ubl:Invoice/cac:AllowanceCharge
Pattern vrbl-invoice-sa-1p2
Severity fatal

Implementation

(cbc:Amount/@currencyID = $SADocumentCurrencyCode or not(cbc:Amount/@currencyID)) and (cbc:BaseAmount/@currencyID = $SADocumentCurrencyCode or not(cbc:BaseAmount/@currencyID))