diff options
Diffstat (limited to 'httemplate/misc')
-rw-r--r-- | httemplate/misc/cust_main_note-import.cgi | 2 | ||||
-rw-r--r-- | httemplate/misc/xmlhttp-cust_main-search.cgi | 7 |
2 files changed, 6 insertions, 3 deletions
diff --git a/httemplate/misc/cust_main_note-import.cgi b/httemplate/misc/cust_main_note-import.cgi index 186289517..2e7dc8b65 100644 --- a/httemplate/misc/cust_main_note-import.cgi +++ b/httemplate/misc/cust_main_note-import.cgi @@ -49,7 +49,7 @@ if ( customerArray.length == 0 ) { custnum_obj.value = 'Not found'; custnum_obj.style.color = '#ff0000'; - } else if ( customerArray.length == 5 ) { + } else if ( customerArray.length >= 5 ) { var name = customerArray[1]; opt(customer_select,custnum,name,'#000000'); customer_select.selectedIndex = customer_select.length - 1; diff --git a/httemplate/misc/xmlhttp-cust_main-search.cgi b/httemplate/misc/xmlhttp-cust_main-search.cgi index 73c9ff8ec..b3bf4681b 100644 --- a/httemplate/misc/xmlhttp-cust_main-search.cgi +++ b/httemplate/misc/xmlhttp-cust_main-search.cgi @@ -17,7 +17,8 @@ % $_->balance, % $_->ucfirst_status, % $_->statuscolor, -% scalar($_->open_cust_bill) +% scalar($_->open_cust_bill), +% $_->display_custnum, % ], % @cust_main % ]; @@ -66,7 +67,8 @@ sub findbycustnum { $c->balance, $c->ucfirst_status, $c->statuscolor, - scalar($c->open_cust_bill) + scalar($c->open_cust_bill), + $c->display_custnum, ]; } @@ -94,6 +96,7 @@ sub findbycustnum_or_agent_custid { $_->ucfirst_status, $_->statuscolor, scalar($_->open_cust_bill), + $_->display_custnum, ], qsearch({ |