X-Git-Url: http://git.hcoop.net/bpt/portal.git/blobdiff_plain/ee5c7008c28e1b6d5899df97b10db67abdf971e6..49e613aeb7d8d989e43aa13bfa66c2b6cb0ac11f:/money.mlt diff --git a/money.mlt b/money.mlt index 2b1acfe..7026421 100644 --- a/money.mlt +++ b/money.mlt @@ -1,5 +1,7 @@ <% @header [("title", ["MoneyMatters"])]; +val root = Group.inGroupNum 0; + ref showNormal = true; if $"hist" <> "" then @@ -16,7 +18,7 @@ if $"hist" <> "" then val admin = Group.inGroupName "money"; showNormal := false %> -
Date | Description | Amount | Last modified | Participants | multi | <% end; if admin then - %>[Hosting] [Payment] [Other] | + %>[Bill] [Payment] [Other] | +[Delete] | <% +end +%><% +end %> +
Date | Description | Amount | Last modified | Participants | |||
<% #d trn %> | <% Web.html (#descr trn) %> | <% #amount trn %> | <% #stamp trn %> | +<% switch Money.listChargesWithNames (#id trn) of + [(name, cha)] => %><% name %> | <% + | _ => %>multi | <% +end; +if admin then + %>[Bill] [Payment] [Other] | [Delete] | <% end %>
<% #name bal %> | <% #amount bal %> | <% switch Balance.listBalanceUsers (#id bal) of [] => | (user :: users) => - %><% Web.html (#name user) %><% + %><% Web.html (#name user) %> [History]<% foreach user in users do %>, <% Web.html (#name user) %><% end @@ -53,21 +77,60 @@ end %> |
<% #name bal %> | <% #amount bal %> | +<% switch Balance.listBalanceUsers (#id bal) of + [] => + | (user :: users) => + %><% Web.html (#name user) %> [History]<% + foreach user in users do + %>, <% Web.html (#name user) %> [History]<% + end +end %> |
<% #name bal %> | <% #amount bal %> | +<% switch Balance.listBalanceUsers (#id bal) of + [] => + | (user :: users) => + %><% Web.html (#name user) %> [History]<% + foreach user in users do + %>, <% Web.html (#name user) %> [History]<% + end +end %> |