<% end %>
@@ -152,6 +174,7 @@ end %>
<% elseif $"cmd" = "pay" then
Group.requireGroupName "money";
+ val uid = (case $"user" of "" => ~1 | s => Web.stoi s);
showNormal := false %>
New member payment
@@ -160,17 +183,17 @@ end %>
Description:
-
Date:
+
Date:
">
Amount:
Member:
@@ -322,19 +345,159 @@ foreach (name, cha) in Money.listChargesWithNames id do
end %>
+<% elseif $"cmd" = "paypal" then
+ showNormal := false;
+ val apps = App.searchPaypal ($"email");
+ val users = Init.searchPaypal ($"email");
+
+ switch apps of
+ _ :: _ =>
+ %>
Approved applications
+
+ <% foreach appl in apps do %>
+
+
+
Received:
<% #applied appl %>
+
Approved by:
<%
+ ref first = true;
+ ref found = false;
+ foreach (id, name) in App.votes (#id appl) do
+ if first then
+ first := false
+ else
+ %>, <%
+ end
+ %><% name %><%
+ end %>
+ <% end
+ end;
+
+ switch (apps, users) of
+ (nil, nil) => %>No matches.<%
+ end
+
+elseif $"cmd" = "checkout" then
+ showNormal := false;
+ val apps = App.searchCheckout ($"email");
+ val users = Init.searchCheckout ($"email");
+
+ switch apps of
+ _ :: _ =>
+ %>
Approved applications
+
+ <% foreach appl in apps do %>
+
+
+
Received:
<% #applied appl %>
+
Approved by:
<%
+ ref first = true;
+ ref found = false;
+ foreach (id, name) in App.votes (#id appl) do
+ if first then
+ first := false
+ else
+ %>, <%
+ end
+ %><% name %><%
+ end %>
<%
+
+end %>
+
+<% if showNormal then
+ val you = Init.getUser();
+ val bal = Balance.lookupBalance (#bal you);
+ val deposit = Balance.depositAmount (#id bal) %>
+
+
Your balance: $<% Util.sub (#amount bal, deposit) %>
+Deposit: $<% deposit %> (3 months of dues at the minimal pledge level)
-<% if showNormal then %>
+
-
Your balance: $<% #amount (Balance.lookupBalance (#bal (Init.getUser ()))) %>
<% if (iff Group.inGroupName "money" then $"lookback" = "" else $"audit" <> "") then %>
Sum of all active balances: $<% Balance.sumOwnedBalances () %>