UBL-DT-01

[UBL-DT-01]-Amounts shall be decimal up to two fraction digits

Targeted Semantic Element

  1. BT-142-Line level charge base amount : The base amount that may be used, in conjunction with the line level charge percentage, to calculate the line level charge amount. Must be rounded to maximum 2 decimals.

Schematron Rules

  1. UBL-DT-01
  2. Flag
    fatal
    Context
    //*[ends-with(name(), 'Amount') and not(ends-with(name(),'PriceAmount')) and not(ancestor::cac:Price/cac:AllowanceCharge)]
    Message
    [UBL-DT-01]-Amounts shall be decimal up to two fraction digits