X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fcust_bill.pm;h=f5219c06a7658ff0129702d2bedd35e724a83387;hb=b1c1559dec0570bc401ccd0e29e66a9bf6f151e1;hp=32c2cb1a85bdb8055b6f9d4b2b875e1e706ed7b6;hpb=a10881a4daca69112f2bd18bce0c57b934a6fefa;p=freeside.git diff --git a/FS/FS/cust_bill.pm b/FS/FS/cust_bill.pm index 32c2cb1a8..f5219c06a 100644 --- a/FS/FS/cust_bill.pm +++ b/FS/FS/cust_bill.pm @@ -5082,6 +5082,11 @@ sub search_sql_where { push @search, "cust_main.agentnum = $1"; } + #agentnum + if ( $param->{'custnum'} =~ /^(\d+)$/ ) { + push @search, "cust_bill.custnum = $1"; + } + #_date if ( $param->{_date} ) { my($beginning, $ending) = @{$param->{_date}};