X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fsearch%2Fsales_commission_pkg.html;h=9fbe22eca0e13af753c7c57ed91f5c2e0d807098;hp=3611a7ca51646c4b6f2af73fc90066e71aecf553;hb=f822e27a1e00594332ffa487a1c284234c5580a6;hpb=9c78a52fcd35d7d0c39a4798d583ca4d7b20fd73 diff --git a/httemplate/search/sales_commission_pkg.html b/httemplate/search/sales_commission_pkg.html index 3611a7ca5..9fbe22eca 100644 --- a/httemplate/search/sales_commission_pkg.html +++ b/httemplate/search/sales_commission_pkg.html @@ -1,12 +1,17 @@ %# still not a good way to do rows grouped by some field in a search.html %# report +%# (there is now, but we're not yet sponsored to switch this over to it) % if ( $type eq 'xls' ) { <% $data %>\ % } else { +% if ( $type eq 'html-print' ) { +<& /elements/header-popup.html, $title &> +% } else { <& /elements/header.html, $title &>

Download full results
as Excel spreadsheet

+% }
<& /elements/table-grid.html &> + Package Sales Percentage Commission + % my ($custnum, $sales, $commission, $row, $bgcolor) = (0, 0, 0, 0); % foreach my $cust_pkg ( @cust_pkg ) { % if ( $custnum ne $cust_pkg->custnum ) { @@ -67,6 +74,7 @@ td.money:before { content: '<% $money_char %>'; } <%init> #pretty bad false laziness w/agent_commission.html, lots of s/agent/sales/ :/ +# everything above is completely untouched die "access denied" unless $FS::CurrentUser::CurrentUser->access_right('Financial reports');