From c4b71bc4459cb7d403cbebede470aeb2c6292a6e Mon Sep 17 00:00:00 2001 From: ivan Date: Wed, 27 Jul 2011 23:27:15 +0000 Subject: add per-customer "Invoice reports" link, RT#13802 --- FS/FS/cust_bill.pm | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'FS') diff --git a/FS/FS/cust_bill.pm b/FS/FS/cust_bill.pm index 4ea67b69a..a6a782a0c 100644 --- a/FS/FS/cust_bill.pm +++ b/FS/FS/cust_bill.pm @@ -5221,6 +5221,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}}; -- cgit v1.2.1