summaryrefslogtreecommitdiff
path: root/httemplate/graph
diff options
context:
space:
mode:
authorlevinse <levinse>2011-05-26 20:59:59 +0000
committerlevinse <levinse>2011-05-26 20:59:59 +0000
commit84ea59c9860b959dd13759418aab2ef256aa7bf2 (patch)
tree88ae8e072e37d9f3bd29d74e84edef91d4844cd2 /httemplate/graph
parent463b34a31c44e915b4c915c09a48c78691b46925 (diff)
daily sales, credits, and receipts report
Diffstat (limited to 'httemplate/graph')
-rw-r--r--httemplate/graph/report_money_time_daily.html9
1 files changed, 8 insertions, 1 deletions
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 @@
<TABLE>
-<% 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');