[freeside-commits] freeside/FS/FS/cust_main Search.pm,1.8,1.8.2.1
Ivan,,,
ivan at wavetail.420.am
Sun Nov 27 17:40:30 PST 2011
Update of /home/cvs/cvsroot/freeside/FS/FS/cust_main
In directory wavetail.420.am:/tmp/cvs-serv19058/FS/FS/cust_main
Modified Files:
Tag: FREESIDE_2_3_BRANCH
Search.pm
Log Message:
add inter.net numbering on freeside custnum instead, RT#15326
Index: Search.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_main/Search.pm,v
retrieving revision 1.8
retrieving revision 1.8.2.1
diff -u -w -d -r1.8 -r1.8.2.1
--- Search.pm 1 Jul 2011 05:33:55 -0000 1.8
+++ Search.pm 28 Nov 2011 01:40:27 -0000 1.8.2.1
@@ -142,6 +142,19 @@
} );
}
+ #if this becomes agent-virt need to get a list of all prefixes the current
+ #user can see (via their agents)
+ my $prefix = $conf->config('cust_main-custnum-display_prefix');
+ if ( $prefix && $prefix eq substr($num, 0, length($prefix)) ) {
+ push @cust_main, qsearch( {
+ 'table' => 'cust_main',
+ 'hashref' => { 'custnum' => 0 + substr($num, length($prefix)),
+ %options,
+ },
+ 'extra_sql' => " AND $agentnums_sql", #agent virtualization
+ } );
+ }
+
push @cust_main, qsearch( {
'table' => 'cust_main',
'hashref' => { 'agent_custid' => $num, %options },
More information about the freeside-commits
mailing list