From 0609a8e3c7428e34af349b8d40291f2abe40b299 Mon Sep 17 00:00:00 2001 From: adamch Date: Sun, 7 Oct 2007 12:52:19 +0000 Subject: [PATCH] Financial audit mode for anyone --- money.mlt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/money.mlt b/money.mlt index 3c504da..737d4b3 100644 --- a/money.mlt +++ b/money.mlt @@ -327,13 +327,13 @@ end %> <% if showNormal then %>

Your balance: $<% #amount (Balance.lookupBalance (#bal (Init.getUser ()))) %>

-<% if Group.inGroupName "money" then %>

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

<% end %> +<% if (iff Group.inGroupName "money" then $"lookback" = "" else $"audit" <> "") then %>

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

<% end %> List all transactions
List active balances
List retired balances
-<% if Group.inGroupName "money" and $"lookback" = "" then %> +<% if (Group.inGroupName "money" and $"lookback" = "") or $"audit" <> "" then %> Switch to regular member view
@@ -359,8 +359,9 @@ end %> <% end %> -<% else - val lookback = case $"lookback" of "" => 20 | lb => Web.stoi lb; +<% else %> +Switch to audit view
+<% val lookback = case $"lookback" of "" => 20 | lb => Web.stoi lb; @payment [] %>

Your recent account activity

-- 2.20.1