Fold dues increase into portal
authorAdam Chlipala <adamc@hcoop.net>
Tue, 24 Nov 2009 13:36:43 +0000 (13:36 +0000)
committerAdam Chlipala <adamc@hcoop.net>
Tue, 24 Nov 2009 13:36:43 +0000 (13:36 +0000)
balance.sml
money.sml
remind/remind.sml

index ffefdd5..59622de 100644 (file)
@@ -108,7 +108,7 @@ fun sumOwnedBalances () =
 
 fun isNegative (bal : balance) = #amount bal < 0.0
 
-fun depositAmount _ = 5.0 * 3.0
+fun depositAmount _ = 7.0 * 3.0
 (*fun depositAmount bal =
     let
        val db = getDb ()
index 1ca22a2..8fa5ed7 100644 (file)
--- a/money.sml
+++ b/money.sml
@@ -276,7 +276,7 @@ fun costBase amt =
 val monthlyCost = 900.0
 val graceMonths = 1
 
-val baseDues = 5.0
+val baseDues = 7.0
 
 fun delinquentPledgers () =
     let
@@ -296,8 +296,6 @@ fun resetPledges ids =
 
 fun freezeworthyPledgers () =
     let
-       val baseDues = 5.0
-
        fun makeRow [id, name, amount, j] = {id = C.intFromSql id, name = C.stringFromSql name,
                                             balance = C.realFromSql amount, joinedThisMonth = C.boolFromSql j}
          | makeRow row = Init.rowError ("Bad freezeworthyPledgers", row)
@@ -311,8 +309,6 @@ fun freezeworthyPledgers () =
 
 fun bootworthyPledgers () =
     let
-       val baseDues = 5.0
-
        fun makeRow [id, name, amount, j] = {id = C.intFromSql id, name = C.stringFromSql name,
                                             balance = C.realFromSql amount, joinedThisMonth = C.boolFromSql j}
          | makeRow row = Init.rowError ("Bad bootworthyPledgers", row)
index fe7edee..d3e3b8b 100644 (file)
@@ -11,7 +11,7 @@ fun printReal n =
     else
        Real.fmt (StringCvt.FIX (SOME 2)) n
 
-val basePerMonth = 5.0
+val basePerMonth = 7.0
 val deposit = basePerMonth * 3.0
 
 fun main _ =
@@ -77,7 +77,7 @@ fun main _ =
                        write "\nMinimum amount to pay to not see this message again for two months: US$";
                        write (printReal (headsUp - amount));
 
-                       write "\n\nThe deposit requirement was calculated as three months of dues at $5/mo..\n\n";
+                       write "\n\nThe deposit requirement was calculated as three months of dues at $7/mo..\n\n";
 
                        write "To make a payment, visit:\n";
                        write "     https://members.hcoop.net/\n";