summaryrefslogtreecommitdiff
path: root/FS
diff options
context:
space:
mode:
authorivan <ivan>2011-07-27 23:27:26 +0000
committerivan <ivan>2011-07-27 23:27:26 +0000
commitb1c1559dec0570bc401ccd0e29e66a9bf6f151e1 (patch)
tree6d68d40fb8c4bb8a3a55aec077f2b56dc31abd1d /FS
parenta10881a4daca69112f2bd18bce0c57b934a6fefa (diff)
add per-customer "Invoice reports" link, RT#13802
Diffstat (limited to 'FS')
-rw-r--r--FS/FS/cust_bill.pm5
1 files changed, 5 insertions, 0 deletions
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}};