IBR-CO-12

Sum of charges on document level (ibt-108) = Σ Document level charge amount (ibt-099).

About

ID
ibr-co-12
Flag
fatal
Context
cac:LegalMonetaryTotal
Test
xs:decimal(cbc:ChargeTotalAmount) = u:round(sum(../cac:AllowanceCharge[cbc:ChargeIndicator=true()]/xs:decimal(cbc:Amount)), /*/cbc:DocumentCurrencyCode) or (not(cbc:ChargeTotalAmount) and not(../cac:AllowanceCharge[cbc:ChargeIndicator=true()]))
Rules
  • IBR-CO-12 Sum of charges on document level (ibt-108) = Σ Document level charge amount (ibt-099).
Syntax binding