From: Mark Wells Date: Wed, 18 Apr 2012 01:19:18 +0000 (-0700) Subject: restore agent_custid smart search, #17424 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=d79c0d9b129507021f6c21f3e5974b2c84fe7d91;p=freeside.git restore agent_custid smart search, #17424 --- diff --git a/FS/FS/cust_main/Search.pm b/FS/FS/cust_main/Search.pm index 1e9eee79d..31b89cd31 100644 --- a/FS/FS/cust_main/Search.pm +++ b/FS/FS/cust_main/Search.pm @@ -166,6 +166,12 @@ sub smart_search { } } + push @cust_main, qsearch( { + 'table' => 'cust_main', + 'hashref' => { 'agent_custid' => $num, %options }, + 'extra_sql' => " AND $agentnums_sql", #agent virtualization + } ); + if ( $conf->exists('address1-search') ) { my $len = length($num); $num = lc($num);