diff options
| author | levinse <levinse> | 2011-04-13 05:42:38 +0000 | 
|---|---|---|
| committer | levinse <levinse> | 2011-04-13 05:42:38 +0000 | 
| commit | b64ad663a0b694d86079c82c80f9de929b2559af (patch) | |
| tree | e92b6608cdbf68533a95d38ebb9efb399c7875a8 /httemplate/misc | |
| parent | a96df0649e6b57d19896ec78236b4d7a8dfdf241 (diff) | |
quick payment tool improvements, RT8121
Diffstat (limited to 'httemplate/misc')
| -rw-r--r-- | httemplate/misc/cust_main_note-import.cgi | 4 | ||||
| -rw-r--r-- | httemplate/misc/xmlhttp-cust_main-search.cgi | 8 | 
2 files changed, 6 insertions, 6 deletions
| diff --git a/httemplate/misc/cust_main_note-import.cgi b/httemplate/misc/cust_main_note-import.cgi index 79fdd09ff..72ac556fd 100644 --- a/httemplate/misc/cust_main_note-import.cgi +++ b/httemplate/misc/cust_main_note-import.cgi @@ -49,8 +49,8 @@        if ( customerArray.length == 0 )  {          custnum_obj.value = 'Not found';          custnum_obj.style.color = '#ff0000'; -      } else if ( customerArray.length == 3 ) { -	var name = customerArray[1]; +      } else if ( customerArray.length == 5 ) { +	    var name = customerArray[1];          opt(customer_select,custnum,name,'#000000');          customer_select.selectedIndex = customer_select.length - 1;          custnum_obj.value = custnum; diff --git a/httemplate/misc/xmlhttp-cust_main-search.cgi b/httemplate/misc/xmlhttp-cust_main-search.cgi index 7140b20b8..6f023121f 100644 --- a/httemplate/misc/xmlhttp-cust_main-search.cgi +++ b/httemplate/misc/xmlhttp-cust_main-search.cgi @@ -12,7 +12,7 @@  %   my @cust_main = smart_search( 'search' => $string,  %                                 'no_fuzzy_on_exact' => 1, #pref?  %                               ); -%   my $return = [ map [ $_->custnum, $_->name, $_->balance ], @cust_main ]; +%   my $return = [ map [ $_->custnum, $_->name, $_->balance, $_->ucfirst_status, $_->statuscolor ], @cust_main ];  %       <% objToJson($return) %>  % } elsif ( $sub eq 'invnum_search' ) { @@ -33,13 +33,13 @@ sub findbycustnum{      my $agent = shift;      my $hashref = { 'custnum' => $custnum };      $hashref = { 'agent_custid' => $custnum } if $agent; -    my $cust_main = qsearchs({ +    my $c = qsearchs({         	'table'   => 'cust_main',         	'hashref' => $hashref,         	'extra_sql' => ' AND '. $FS::CurrentUser::CurrentUser->agentnums_sql,       		}); -   return [ $cust_main->custnum, $cust_main->name, $cust_main->balance ]  -	if $cust_main; +   return [ $c->custnum, $c->name, $c->balance, $c->ucfirst_status, $c->statuscolor ]  +	if $c;     [];  }  </%init> | 
