X-Git-Url: http://git.hcoop.net/bpt/portal.git/blobdiff_plain/9bda1e7f56f54ad5f5fa2782a8b746c4b77ae70b..refs/heads/bpt-fix-cms:/money.mlt diff --git a/money.mlt b/money.mlt index a0994f0..dbad9a9 100644 --- a/money.mlt +++ b/money.mlt @@ -1,12 +1,24 @@ <% @header [("title", ["MoneyMatters"])]; +val root = Group.inGroupNum 0; + ref showNormal = true; -if $"cmd" = "list" then +if $"hist" <> "" then + showNormal := false; + val id = Web.stoi ($"hist") %> +
Date | Description | Amount |
<% #d trn %> | <% Web.html (#descr trn) %> | <% amount %>/<% #amount trn %> |
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) %><% + %>, <% Web.html (#name user) %><% + 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 %> |
<% #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 %> |