projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
filter by customer class on all financial reports, #20573
[freeside.git]
/
httemplate
/
search
/
unearned_detail.html
diff --git
a/httemplate/search/unearned_detail.html
b/httemplate/search/unearned_detail.html
index
02d514c
..
f61de05
100644
(file)
--- a/
httemplate/search/unearned_detail.html
+++ b/
httemplate/search/unearned_detail.html
@@
-118,6
+118,12
@@
if ( $cgi->param('agentnum') =~ /^(\d+)$/ ) {
push @where, "cust_main.agentnum = $1";
}
push @where, "cust_main.agentnum = $1";
}
+if ( $cgi->param('cust_classnum') ) {
+ my @classnums = grep /^\d+$/, $cgi->param('cust_classnum');
+ push @where, 'cust_main.classnum IN('.join(',',@classnums).')'
+ if @classnums;
+}
+
# no pkgclass, no taxclass, no tax location...
# unearned revenue mode
# no pkgclass, no taxclass, no tax location...
# unearned revenue mode
@@
-235,7
+241,8
@@
my $query = {
my $ilink = [ "${p}view/cust_bill.cgi?", 'invnum' ];
my $clink = [ "${p}view/cust_main.cgi?", 'custnum' ];
my $ilink = [ "${p}view/cust_bill.cgi?", 'invnum' ];
my $clink = [ "${p}view/cust_main.cgi?", 'custnum' ];
-my $money_char;
+my $conf = new FS::Conf;
+my $money_char = $conf->config('money_char') || '$';
sub money_sub {
$conf ||= new FS::Conf;
sub money_sub {
$conf ||= new FS::Conf;