[freeside-commits] freeside/httemplate/misc xmlhttp-cust_main-search.cgi, 1.10, 1.11 cust_main_note-import.cgi, 1.5, 1.6

Erik Levinson levinse at wavetail.420.am
Tue Apr 12 22:42:40 PDT 2011


Update of /home/cvs/cvsroot/freeside/httemplate/misc
In directory wavetail.420.am:/tmp/cvs-serv27656/httemplate/misc

Modified Files:
	xmlhttp-cust_main-search.cgi cust_main_note-import.cgi 
Log Message:
quick payment tool improvements, RT8121

Index: cust_main_note-import.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/misc/cust_main_note-import.cgi,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -w -d -r1.5 -r1.6
--- cust_main_note-import.cgi	22 Feb 2011 00:19:20 -0000	1.5
+++ cust_main_note-import.cgi	13 Apr 2011 05:42:38 -0000	1.6
@@ -49,7 +49,7 @@
       if ( customerArray.length == 0 )  {
         custnum_obj.value = 'Not found';
         custnum_obj.style.color = '#ff0000';
-      } else if ( customerArray.length == 3 ) {
+      } else if ( customerArray.length == 5 ) {
 	var name = customerArray[1];
         opt(customer_select,custnum,name,'#000000');
         customer_select.selectedIndex = customer_select.length - 1;

Index: xmlhttp-cust_main-search.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/misc/xmlhttp-cust_main-search.cgi,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -w -d -r1.10 -r1.11
--- xmlhttp-cust_main-search.cgi	22 Feb 2011 00:19:20 -0000	1.10
+++ xmlhttp-cust_main-search.cgi	13 Apr 2011 05:42:38 -0000	1.11
@@ -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 @@
     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>



More information about the freeside-commits mailing list