X-Git-Url: http://git.hcoop.net/hcoop/portal.git/blobdiff_plain/aaba877afe8e8ce438a63ba764897fbfdbf2d760..0142983cd82e445f507b08bffd39e6b6ce4a4c51:/money.mlt diff --git a/money.mlt b/money.mlt index c6f92e3..d92969b 100644 --- a/money.mlt +++ b/money.mlt @@ -63,7 +63,7 @@ end %>

Active Balances

- +
<% foreach bal in Balance.listOwnedBalances () do %>

Retired Balances

-
<% #name bal %> <% #amount bal %> <% switch Balance.listBalanceUsers (#id bal) of @@ -82,7 +82,7 @@ end %>
+
<% foreach bal in Balance.listUnownedBalances () do %>

Negative Active Balances (<% length bals %>)

-
<% #name bal %> <% #amount bal %> <% switch Balance.listBalanceUsers (#id bal) of @@ -102,7 +102,7 @@ end %>
+
<% foreach bal in bals do %>
<% #name bal %> <% #amount bal %> <% switch Balance.listBalanceUsers (#id bal) of @@ -258,7 +258,6 @@ end %>
val txid = Money.applyStripePayment stripePmt; %>

Stripe Payment Processed (Transaction <% txid %>)

+<% elseif $"cmd" = "stripeRejected" then +%>

Stripe Payment Rejected!

+ +<% elseif $"cmd" = "stripeReject" then + Group.requireGroupName "money"; + showNormal := false; +%> +

Are you sure you want to reject Stripe Payment <% $"stripeChargeId" %>?

+ + + " /> + + + + <% elseif $"modPay" <> "" then Group.requireGroupName "money"; showNormal := false; @@ -474,9 +488,6 @@ end %> <% switch #paypal appl of SOME s => %> - <% end; - switch #checkout appl of - SOME s => %> <% end %> @@ -548,9 +559,6 @@ elseif $"cmd" = "checkout" then <% switch #paypal appl of SOME s => %> - <% end; - switch #checkout appl of - SOME s => %> <% end %> @@ -596,10 +604,11 @@ elseif $"cmd" = "delinq" then elseif $"cmd" = "freezeworthy" then showNormal := false; val dqs = Money.freezeworthyPledgers () %> -
Description:
E-mail address: <% #email appl %>
PayPal: <% s %>
Google Checkout: <% s %>
Forward e-mail? <% if #forward appl then %>yes<% else %>no<% end %>
Proposed uses: <% Web.htmlNl (#uses appl) %>
E-mail address: <% #email appl %>
PayPal: <% s %>
Google Checkout: <% s %>
Forward e-mail? <% if #forward appl then %>yes<% else %>no<% end %>
Proposed uses: <% Web.htmlNl (#uses appl) %>
+
<% foreach dq in dqs do %> - + + <% if #joinedThisMonth dq then %><% end %> <% end %>
Member Balance
<% #name dq %> $<% #balance dq %>
<% #name dq %> $<% #balance dq %>[History](joined this month)
@@ -607,10 +616,10 @@ elseif $"cmd" = "freezeworthy" then <% elseif $"cmd" = "bootworthy" then showNormal := false; val dqs = Money.bootworthyPledgers () %> - +
<% foreach dq in dqs do %> - + <% if #joinedThisMonth dq then %><% end %> <% end %>
Member Balance
<% #name dq %> $<% #balance dq %>
<% #name dq %> $<% #balance dq %>[History](joined this month)
@@ -624,13 +633,10 @@ elseif $"cmd" = "freezeworthy" then val showBal = Util.sub (#amount bal, deposit) %>

Your balance: $<% showBal %>
-Deposit: $<% deposit %> (3 months of dues at the minimal pledge level)
-Co-op balance: $<% #amount (Balance.lookupBalance (valOf (Balance.balanceNameToId "hcoop"))) %>

- - +Deposit: $<% deposit %> (3 months of dues at the minimal pledge level)
+ <% if (iff Group.inGroupName "money" then $"lookback" = "" else $"audit" <> "") then %>

Sum of all active balances: $<% Balance.sumOwnedBalances () %>

<% end %> -

Financial Information

List all transactions
@@ -645,7 +651,11 @@ Co-op balance: $<% #amount (Balance.lookupBalance (valOf (Balance.balanceNameToI Drop pledges of delinquent members
Switch to regular member view
+ +<% end %>
+ +<% if (Group.inGroupName "money" and $"lookback" = "") or $"audit" <> "" then %>

New Transaction

Bill for the co-op
@@ -654,9 +664,10 @@ Co-op balance: $<% #amount (Balance.lookupBalance (valOf (Balance.balanceNameToI New hosting bill (old style)
Generic/even

-Equalize balances
+
+

Look up a PayPal e-mail address

@@ -698,6 +709,12 @@ Co-op balance: $<% #amount (Balance.lookupBalance (valOf (Balance.balanceNameToI +
+ + + +
+ <% end %> @@ -720,7 +737,10 @@ end %> <% else %> + <% val lookback = case $"lookback" of "" => 20 | "inf" => 0 | lb => Web.stoi lb; @payment [] %>