-
<cfsilent>
-
<cfscript>
-
// loop through the query set and add up only non expired values for the total
-
variables.currentTotal = 0;
-
for (i=1;i LTE arrayLen(sqlQry['amount']); i=i+1)
-
{
-
if (not len(sqlQry['expirationDate'][i]))
-
{
-
variables.currentTotal = variables.currentTotal + sqlQry['amount'][i];
-
}
-
}
-
</cfscript>
-
</cfsilent>