add advertising source to sales/credits/receipts summary, RT#18349
[freeside.git] / FS / FS / cust_bill.pm
index 35ab9f3..498025f 100644 (file)
@@ -5693,7 +5693,12 @@ sub search_sql_where {
     push @search, "cust_main.agentnum = $1";
   }
 
-  #agentnum
+  #refnum
+  if ( $param->{'refnum'} =~ /^(\d+)$/ ) {
+    push @search, "cust_main.refnum = $1";
+  }
+
+  #custnum
   if ( $param->{'custnum'} =~ /^(\d+)$/ ) {
     push @search, "cust_bill.custnum = $1";
   }