[freeside-commits] branch master updated. 0393defb3dee145a4bedee761de25cfd1ac503e0
Ivan
ivan at 420.am
Tue Feb 25 21:52:32 PST 2014
The branch, master has been updated
via 0393defb3dee145a4bedee761de25cfd1ac503e0 (commit)
from 45d35d5739d05e602bc317739485693e0e9ff0b5 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 0393defb3dee145a4bedee761de25cfd1ac503e0
Author: Ivan Kohler <ivan at freeside.biz>
Date: Tue Feb 25 21:52:31 2014 -0800
fix agent selection on sales commission report, RT#27818
diff --git a/httemplate/search/sales_commission.html b/httemplate/search/sales_commission.html
index e74f379..57b6cdc 100644
--- 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 {
-----------------------------------------------------------------------
Summary of changes:
httemplate/search/sales_commission.html | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
More information about the freeside-commits
mailing list