X-Git-Url: https://git.hcoop.net/bpt/portal.git/blobdiff_plain/432aa2587e034970d8273d0e39062952196b8fcf..60465e67fb55c6fddb458407d5b10adafd6e214f:/portal.mlt diff --git a/portal.mlt b/portal.mlt index 7fb59ee..e9d82fe 100644 --- a/portal.mlt +++ b/portal.mlt @@ -1,19 +1,24 @@ <% val you = Init.getUser(); val bal = Balance.lookupBalance (#bal you); val deposit = Balance.depositAmount (#id bal); +val showBal = Util.sub (#amount bal, deposit); @header [] %> <% @payment [] %>

Your recent account activity

+<% ref running = showBal %> - + <% foreach (amount, trn) in Money.listUserTransactionsLimit (Init.getUserId (), 5) do %> - -<% end %> + + +<% running := Util.sub (running, amount) +end %>
Date Description Amount
Date Description Amount Balance
<% #d trn %> <% Web.html (#descr trn) %> <% amount %>/<% #amount trn %>
<% #d trn %> <% Web.html (#descr trn) %> <% amount %>/<% #amount trn %><% running %>
-Balance: $<% Util.sub (#amount bal, deposit) %>
+Show all transactions
+Balance: $<% showBal %>
Deposit: $<% deposit %> (3 months of dues at the minimal pledge level)