projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add customer sort header to credit report, RT#26025
[freeside.git]
/
httemplate
/
search
/
cust_credit.html
diff --git
a/httemplate/search/cust_credit.html
b/httemplate/search/cust_credit.html
index
fb6ef83
..
18908fd
100755
(executable)
--- a/
httemplate/search/cust_credit.html
+++ b/
httemplate/search/cust_credit.html
@@
-63,8
+63,8
@@
push @fields, sub { time2str('%b %d %Y', shift->_date ) },
'reason',
\&FS::UI::Web::cust_fields,
;
'reason',
\&FS::UI::Web::cust_fields,
;
-push @sort_fields, '_date', 'otaker', 'reason';
-$align .= 'rll'.FS::UI::Web::cust_aligns()
,
+push @sort_fields, '_date', 'otaker', 'reason'
, FS::UI::Web::cust_sort_fields()
;
+$align .= 'rll'.FS::UI::Web::cust_aligns()
;
push @links, '',
'',
'',
push @links, '',
'',
'',
@@
-97,6
+97,10
@@
if ( $cgi->param('agentnum') && $cgi->param('agentnum') =~ /^(\d+)$/ ) {
$title = $agent->agent. " $title";
}
$title = $agent->agent. " $title";
}
+if ( $cgi->param('credbatch') =~ /^([\w\-\/\.\:]+)$/ ) {
+ push @search, "cust_credit.credbatch = '$1'";
+}
+
# commission_salesnum
if ( $cgi->param('commission_salesnum') =~ /^(\d+)$/ ) {
push @search, "commission_salesnum = $1";
# commission_salesnum
if ( $cgi->param('commission_salesnum') =~ /^(\d+)$/ ) {
push @search, "commission_salesnum = $1";