X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fgraph%2Freport_money_time.html;h=aaaf01b19c1dd7820ac251715f86ac17c4c4080c;hp=6c7e42716d2f084effc62afd758f4ca9b371a7ea;hb=11bbf29de447fe39e9d7155fe280a0df70fa8c3c;hpb=f29c752d6f9e813c10295b334eefb924216e34cf diff --git a/httemplate/graph/report_money_time.html b/httemplate/graph/report_money_time.html index 6c7e42716..aaaf01b19 100644 --- a/httemplate/graph/report_money_time.html +++ b/httemplate/graph/report_money_time.html @@ -1,24 +1,4 @@ -<% - -#my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time); -my ($curmon,$curyear) = (localtime(time))[4,5]; - -#find first month -my $syear = 1899+$curyear; -my $smonth = $curmon+1; - -#want 12 month by default, not 13 -$smonth++; -if ( $smonth > 12 ) { $smonth-=12; $syear++ } - -#find last month -my $eyear = 1900+$curyear; -my $emonth = $curmon+1; - -my @mon = qw(Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec); - -%> -<%= include('/elements/header.html', 'Sales, Credits and Receipts Summary' ) %> +<% include('/elements/header.html', 'Sales, Credits and Receipts Summary' ) %>
@@ -34,38 +14,59 @@ my @mon = qw(Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec);
--> -From: - -
+ -To: - -
+<% include('/elements/tr-select-from_to.html' ) %> -For agent: <%= include('/elements/select-agent.html' ) %> -
+<% include('/elements/tr-select-agent.html', + 'label' => 'For agent: ', + 'disable_empty' => 0, + ) +%> - Show 12 month totals instead of monthly values. -
+<& /elements/tr-select-cust_class.html, + 'field' => 'cust_classnum', # to avoid ambiguity in FS::Report::Table + 'multiple' => 1 +&> + +<% include('/elements/tr-select-part_referral.html', + 'label' => 'Advertising source ', + 'disable_empty' => 0, + 'empty_label' => 'all', + ) +%> + + + + + + + - +
+ + <& /elements/checkbox.html, + field => '12mo', + value => 1, + &> + <% emt('Show 12 month totals instead of monthly values') %> +
+ + <& /elements/checkbox.html, + field => 'exclude_discount', + value => 1, + curr_value => 0, + &> + <% emt('Exclude discounts from total sales') %> +
+ +
-<%= include('/elements/footer.html') %> +<% include('/elements/footer.html') %> +<%init> + +die "access denied" + unless $FS::CurrentUser::CurrentUser->access_right('Financial reports'); +