summaryrefslogtreecommitdiff
path: root/FS
diff options
context:
space:
mode:
authorivan <ivan>2011-07-27 23:26:57 +0000
committerivan <ivan>2011-07-27 23:26:57 +0000
commitc52f1b6999b57cc3cb52fe8e4304d0bbfbbbb2f2 (patch)
tree73513a27cf93dd036b692662d0723fe79288a7cc /FS
parentfd81134f9f262894f7133ac3084d64c52a686093 (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}};