In unmigrated members view, list balances and count number that are negative
[hcoop/zz_old/portal.git] / balance.sml
index 5b0c684..1d639da 100644 (file)
@@ -103,4 +103,6 @@ fun sumOwnedBalances () =
        [amt] => C.realFromSql amt
       | _ => raise Fail "sumOwnedBalance: no rows"
 
+fun isNegative (bal : balance) = #amount bal < 0.0
+
 end