summaryrefslogtreecommitdiff
path: root/httemplate/misc/process
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2012-04-15 15:38:47 -0700
committerIvan Kohler <ivan@freeside.biz>2012-04-15 15:38:47 -0700
commit820fe0ac288d4f2bb975b7f58ee02baefd96ed24 (patch)
tree0661dd62e4c4c9e71dca45aedc473cbb7aeb35f4 /httemplate/misc/process
parent2ce6ee8e5cd817a4018ad26eb1e364198c1dd931 (diff)
parent401ba3ab0637de1bc460370949b75dca092375d8 (diff)
Merge branch 'master' of git.freeside.biz:/home/git/freeside
Diffstat (limited to 'httemplate/misc/process')
-rw-r--r--httemplate/misc/process/batch-cust_pay.cgi2
1 files changed, 1 insertions, 1 deletions
diff --git a/httemplate/misc/process/batch-cust_pay.cgi b/httemplate/misc/process/batch-cust_pay.cgi
index aa371266c..a6b90ea74 100644
--- a/httemplate/misc/process/batch-cust_pay.cgi
+++ b/httemplate/misc/process/batch-cust_pay.cgi
@@ -19,7 +19,7 @@
% 'extra_sql' => ' AND '. $FS::CurrentUser::CurrentUser->agentnums_sql,
% });
% }
-% if ( !$cust_main ) { # not found, try agent_custid
+% if ( length($custnum) and !$cust_main ) { # not found, try agent_custid
% $cust_main = qsearchs({
% 'table' => 'cust_main',
% 'hashref' => { 'agent_custid' => $custnum },