customer link to package reports for that customer, RT#6180
[freeside.git] / FS / FS / cust_pkg.pm
index fc44540..e4846ec 100644 (file)
@@ -2367,6 +2367,15 @@ sub search_sql {
   }
 
   ##
+  # parse custnum
+  ##
+
+  if ( $params->{'custnum'} =~ /^(\d+)$/ and $1 ) {
+    push @where,
+      "cust_pkg.custnum = $1";
+  }
+
+  ##
   # parse status
   ##