summaryrefslogtreecommitdiff
path: root/FS
diff options
context:
space:
mode:
authorivan <ivan>2011-07-27 23:27:15 +0000
committerivan <ivan>2011-07-27 23:27:15 +0000
commitc4b71bc4459cb7d403cbebede470aeb2c6292a6e (patch)
tree4de250dcaeb9d87aeb83476b59b1d20a83c52dff /FS
parent0317d666dca468a5495541cf394ab001dcd4a77c (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 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}};