[freeside-commits] branch FREESIDE_3_BRANCH updated. b6c0ce19ea154eeec1f992a528c5c7e3ef877e81
Ivan
ivan at 420.am
Tue Feb 25 21:52:34 PST 2014
The branch, FREESIDE_3_BRANCH has been updated
via b6c0ce19ea154eeec1f992a528c5c7e3ef877e81 (commit)
from 47a277c86e3b7c298bf15ad4e803085b9ce2bb31 (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 b6c0ce19ea154eeec1f992a528c5c7e3ef877e81
Author: Ivan Kohler <ivan at freeside.biz>
Date: Tue Feb 25 21:52:33 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