X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fmisc%2Fbatch-cust_pay.html;h=20ea92f379678e4f6750b46c439ae075af6bc67a;hb=39eaf5704bd78a458e6734f8ea2f1e07a60d4196;hp=610f6e1db4b15864f6cbc3892043cd0950f9057d;hpb=aaf8baf3662e16e9414de236a39f8801a8c41b01;p=freeside.git diff --git a/httemplate/misc/batch-cust_pay.html b/httemplate/misc/batch-cust_pay.html index 610f6e1db..20ea92f37 100644 --- a/httemplate/misc/batch-cust_pay.html +++ b/httemplate/misc/batch-cust_pay.html @@ -96,18 +96,21 @@ function select_discount_term(row, prefix) { die "access denied" unless $FS::CurrentUser::CurrentUser->access_right('Post payment batch'); +my $conf = new FS::Conf; +my $money_char = $conf->config('money_char') || '$'; + my @header = ( '', 'Amount', 'Check #' ); -my @fields = ( sub {'$'}, 'paid', 'payinfo' ); +my @fields = ( sub { "$money_char" }, 'paid', 'payinfo' ); my @types = ( 'immutable', '', '' ); my @align = ( 'c', 'r', 'r' ); my @sizes = ( 0, 8, 10 ); my @colors = ( '', '', '' ); my %param = (); -my @footer = ( '$', '_TOTAL', '' ); +my @footer = ( "$money_char", '_TOTAL', '' ); my @footer_align = ( 'c', 'r', 'r' ); my $custnum_update_callback = ''; -if ( FS::Record->scalar_sql('SELECT count(*) FROM part_pkg_discount') ) { +if ( FS::Record->scalar_sql('SELECT COUNT(*) FROM part_pkg_discount') ) { push @header, ''; push @fields, 'discount_term'; push @types, 'immutable'; @@ -128,4 +131,6 @@ push @colors, '#ff0000'; push @footer, ''; push @footer_align, ''; +$m->comp('/elements/handle_uri_query'); +