FpML Issues Tracker

480: Same Currency precondition has incorrectly specified rule

August 29, 2007

closed

Minor

Always

Validation Rules

Admin

sheinrich

Summary

"Precondition: SameCurrency All instances of currency values must be identical."

Instead the rule should be: "count(distinct-values(//element(*, Money)/currency)) le 1" or in plain English "Evey Money element should have the same currency".

At the moment this reads that the amount must be identical i.e. 5USD and 5GBP are valid.

Notes:

  • mgratacos

    10/23/07 1:33 pm

    VWG 2007-10-23: Every Money element should have the same currency

  • iyermakova

    11/19/07 7:11 pm

  • iyermakova

    11/19/07 7:11 pm

    This has been committed to the trunk (4.4) and 4.3 branch

  • Leave an update

    You must be logged in to post an update.