projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
47a277c
)
fix agent selection on sales commission report, RT#27818
author
Ivan Kohler
<ivan@freeside.biz>
Wed, 26 Feb 2014 05:52:33 +0000
(21:52 -0800)
committer
Ivan Kohler
<ivan@freeside.biz>
Wed, 26 Feb 2014 05:52:33 +0000
(21:52 -0800)
httemplate/search/sales_commission.html
patch
|
blob
|
history
diff --git
a/httemplate/search/sales_commission.html
b/httemplate/search/sales_commission.html
index
e74f379
..
57b6cdc
100644
(file)
--- a/
httemplate/search/sales_commission.html
+++ b/
httemplate/search/sales_commission.html
@@
-33,7
+33,12
@@
my $date_format = $conf->config('date_format') || '%m/%d/%Y';
my %query = ( 'table' => 'sales' );
my $count_query = "SELECT COUNT(*) FROM sales";
-my $salesnum;
+if ( $cgi->param('agentnum') =~ /^(\d+)$/ ) {
+ $query{hashref}->{agentnum} = $1;
+ $count_query .= " WHERE agentnum = $1";
+}
+
+my $salesnum = '';
if ( $cgi->param('salesnum') =~ /^(\d+)$/ ) {
$salesnum = $1;
} else {