X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Fcust_credit.html;h=1ffa302c8a6c9deadb9383369ecf3acb0570d5c9;hb=8807939a466d20893efc5655e61ac38f891d6d05;hp=f81063cc8af7b58ddd562314ca112b05ca65b5fb;hpb=d2e3299a0af2b5122d73b9f3ca0814a36919b1da;p=freeside.git diff --git a/httemplate/search/cust_credit.html b/httemplate/search/cust_credit.html index f81063cc8..1ffa302c8 100755 --- a/httemplate/search/cust_credit.html +++ b/httemplate/search/cust_credit.html @@ -33,18 +33,25 @@ my $clink = sub { : ''; }; -# form selectbox for show_voided_credits: -# - value='': use default from $conf -# - value="0" : override default, do not show voided credits -# - value="1" : override default, show voided credits +# form checkbox for show_voided_credits: +# - value=unset : do not show voided credits +# - value="1" : show voided credits my $show_voided_credits; -$show_voided_credits = $conf->config('show_voided_credits'); $show_voided_credits = $cgi->param('show_voided_credits') - if $cgi->param('show_voided_credits') =~ /^(\d)$/; + if $cgi->param('show_voided_credits'); my (@header, @fields, @sort_fields, $align, @links, @color, @style); $align = ''; +# Report Column: crednum +push @header, emt('Ref No'); +push @fields, sub { shift->crednum }; +push @sort_fields, ''; +$align .= 'l'; +push @links, ''; +push @color, ''; +push @style, ''; + # Report Column: Amount push @header, emt('Amount'); push @fields, sub { $money_char .sprintf('%.2f', shift->amount) };