[freeside-commits] freeside/httemplate/misc xmlhttp-cust_main-search.cgi, 1.8.2.2, 1.8.2.3 cust_main_note-import.cgi, 1.4.2.1, 1.4.2.2
Erik Levinson
levinse at wavetail.420.am
Tue Apr 12 22:42:41 PDT 2011
Update of /home/cvs/cvsroot/freeside/httemplate/misc
In directory wavetail.420.am:/tmp/cvs-serv27678/httemplate/misc
Modified Files:
Tag: FREESIDE_2_1_BRANCH
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.4.2.1
retrieving revision 1.4.2.2
diff -u -w -d -r1.4.2.1 -r1.4.2.2
--- cust_main_note-import.cgi 22 Feb 2011 00:18:51 -0000 1.4.2.1
+++ cust_main_note-import.cgi 13 Apr 2011 05:42:39 -0000 1.4.2.2
@@ -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.8.2.2
retrieving revision 1.8.2.3
diff -u -w -d -r1.8.2.2 -r1.8.2.3
--- xmlhttp-cust_main-search.cgi 22 Feb 2011 00:18:50 -0000 1.8.2.2
+++ xmlhttp-cust_main-search.cgi 13 Apr 2011 05:42:39 -0000 1.8.2.3
@@ -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