summaryrefslogtreecommitdiff
path: root/httemplate/misc/cust_main_note-import.cgi
diff options
context:
space:
mode:
authorlevinse <levinse>2011-02-22 00:18:51 +0000
committerlevinse <levinse>2011-02-22 00:18:51 +0000
commit47ee0a75aa4f78bda082a1c4862fb843ac5736aa (patch)
tree92e5ee158f74238fb4593f7c3dc968a8d4e64971 /httemplate/misc/cust_main_note-import.cgi
parentf7313dd8005e1a1d9e51ea0030688a1faa43bfb3 (diff)
quick payment tool improvements, RT10698
Diffstat (limited to 'httemplate/misc/cust_main_note-import.cgi')
-rw-r--r--httemplate/misc/cust_main_note-import.cgi16
1 files changed, 7 insertions, 9 deletions
diff --git a/httemplate/misc/cust_main_note-import.cgi b/httemplate/misc/cust_main_note-import.cgi
index 8a94ae4d4..79fdd09ff 100644
--- a/httemplate/misc/cust_main_note-import.cgi
+++ b/httemplate/misc/cust_main_note-import.cgi
@@ -39,24 +39,22 @@
custnum_obj.style.backgroundColor = '#dddddd';
- //alert('search for custnum ' + custnum + ', row#' + searchrow );
+ function search_custnum_update(customers) {
- function search_custnum_update(name) {
-
- var name = eval('(' + name + ')' );
+ var customerArray = eval('(' + customers + ')');
custnum_obj.disabled = false;
custnum_obj.style.backgroundColor = '#ffffff';
- if ( name.length > 0 ) {
- //alert('custnum found: ' + name);
+ if ( customerArray.length == 0 ) {
+ custnum_obj.value = 'Not found';
+ custnum_obj.style.color = '#ff0000';
+ } else if ( customerArray.length == 3 ) {
+ var name = customerArray[1];
opt(customer_select,custnum,name,'#000000');
customer_select.selectedIndex = customer_select.length - 1;
custnum_obj.value = custnum;
name_obj.value = name;
- } else {
- custnum_obj.value = 'Not found';
- custnum_obj.style.color = '#ff0000';
}
}