projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix various quick payment entry problems, #17356
[freeside.git]
/
httemplate
/
misc
/
process
/
batch-cust_pay.cgi
diff --git
a/httemplate/misc/process/batch-cust_pay.cgi
b/httemplate/misc/process/batch-cust_pay.cgi
index
aa37126
..
a6b90ea
100644
(file)
--- 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,
% });
% }
% '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 },
% $cust_main = qsearchs({
% 'table' => 'cust_main',
% 'hashref' => { 'agent_custid' => $custnum },