X-Git-Url: http://git.hcoop.net/hcoop/portal.git/blobdiff_plain/208e2cbc6b64811eba6c762795022c042bc48e33..b6392a52a07ca163e5a1ee1b46d62a48ef395829:/money.mlt diff --git a/money.mlt b/money.mlt index e2bf406..dbad9a9 100644 --- a/money.mlt +++ b/money.mlt @@ -1,37 +1,116 @@ <% @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 |
<% #d trn %> | <% Web.html (#descr trn) %> | <% #amount trn %> | <% #stamp trn %> | <% switch Money.listChargesWithNames (#id trn) of - [(name, cha)] => %><% name %> | multi | <% + [(name, cha)] => %><% name %> | <% + | _ => %>multi | <% +end; +if admin then + %>[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) %> [History]<% + foreach user in users do + %>, <% 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) %><% + %><% Web.html (#name user) %> [History]<% foreach user in users do - %>, <% Web.html (#name user) %><% + %>, <% Web.html (#name user) %> [History]<% end end %> |