summaryrefslogtreecommitdiff
path: root/httemplate/search
diff options
context:
space:
mode:
authorMitch Jackson <mitch@freeside.biz>2017-11-28 02:21:57 +0000
committerMitch Jackson <mitch@freeside.biz>2017-12-07 22:00:07 +0000
commit86c44e629af36d91031bf0ba1d770b703e09b888 (patch)
treeeaea6e4df01bbaa7bb2fa360a57b4a36bf72f044 /httemplate/search
parentffac6901129413984e23e53efb97d2c536481d42 (diff)
Change selectbox to checkbox on Credit Report form RT#73200
Diffstat (limited to 'httemplate/search')
-rwxr-xr-xhttemplate/search/cust_credit.html10
-rw-r--r--httemplate/search/report_cust_credit.html7
2 files changed, 8 insertions, 9 deletions
diff --git a/httemplate/search/cust_credit.html b/httemplate/search/cust_credit.html
index f81063cc8..4de50a035 100755
--- a/httemplate/search/cust_credit.html
+++ b/httemplate/search/cust_credit.html
@@ -33,14 +33,12 @@ 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 = '';
diff --git a/httemplate/search/report_cust_credit.html b/httemplate/search/report_cust_credit.html
index 34e05394e..cafe556ba 100644
--- a/httemplate/search/report_cust_credit.html
+++ b/httemplate/search/report_cust_credit.html
@@ -24,8 +24,10 @@
'field' => 'amount',
&>
- <& /elements/tr-select-show_voided_credits.html,
- 'label' => emt('Show Voided Credits'),
+ <& /elements/tr-checkbox.html,
+ 'label' => emt('Show Voided Credits').':',
+ 'field' => 'show_voided_credits',
+ 'value' => '1',
&>
@@ -51,4 +53,3 @@ my $title = $cgi->param('unapplied') ?
'Unapplied credit report' : 'Credit report';
</%init>
-