From a2d31d7aeeec3e0d08e7ebe30b191da94f96618e Mon Sep 17 00:00:00 2001 From: levinse Date: Thu, 26 May 2011 20:59:58 +0000 Subject: daily sales, credits, and receipts report --- httemplate/graph/report_money_time_daily.html | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'httemplate/graph') diff --git a/httemplate/graph/report_money_time_daily.html b/httemplate/graph/report_money_time_daily.html index 1e1b45d4e..8328199c7 100644 --- a/httemplate/graph/report_money_time_daily.html +++ b/httemplate/graph/report_money_time_daily.html @@ -4,7 +4,12 @@ -<% include( '/elements/tr-input-beginning_ending.html' ) %> +<% include( '/elements/tr-input-beginning_ending.html', + 'datesrequired' => 1, + 'from' => time2str('%m/%d/%Y',$from), + 'to' => time2str('%m/%d/%Y',time), + ) +%> <% include('/elements/tr-select-agent.html', 'label' => 'For agent: ', @@ -20,6 +25,8 @@ <% include('/elements/footer.html') %> <%init> +my $from = time - 30*86400; + die "access denied" unless $FS::CurrentUser::CurrentUser->access_right('Financial reports'); -- cgit v1.2.1