VRBL-INV-SA-1p2-146

Basic Info

Rule All currencyID attributes in the Invoice Line Price Group must have the same value as the Document Currency Code.
Context /ubl:Invoice/cac:InvoiceLine/cac:Price
Pattern vrbl-invoice-sa-1p2
Severity fatal

Implementation

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