projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f3729ca
)
Change selectbox to checkbox on Credit Report form RT#73200
author
Mitch Jackson
<mitch@freeside.biz>
Tue, 28 Nov 2017 02:21:57 +0000
(
02:21
+0000)
committer
Mitch Jackson
<mitch@freeside.biz>
Fri, 8 Dec 2017 20:15:07 +0000
(20:15 +0000)
httemplate/elements/tr-select-show_voided_credits.html
[deleted file]
patch
|
blob
|
history
httemplate/search/cust_credit.html
patch
|
blob
|
history
httemplate/search/report_cust_credit.html
patch
|
blob
|
history
diff --git
a/httemplate/elements/tr-select-show_voided_credits.html
b/httemplate/elements/tr-select-show_voided_credits.html
deleted file mode 100644
(file)
index
35c0cf4
..0000000
--- a/
httemplate/elements/tr-select-show_voided_credits.html
+++ /dev/null
@@
-1,15
+0,0 @@
- <TR>
- <TD ALIGN="right"><% $opt{'label'} || 'Show Voided Credits' %></TD>
- <TD>
- <select name='show_voided_credits'>
- <option value=""></option>
- <option value="0">no</option>
- <option value="1">yes</option>
- </select>
- </TD>
- </TR>
-<%init>
-
-my %opt = @_;
-
-</%init>
diff --git
a/httemplate/search/cust_credit.html
b/httemplate/search/cust_credit.html
index
468a01a
..
956f2d2
100755
(executable)
--- 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;
my $show_voided_credits;
-$show_voided_credits = $conf->config('show_voided_credits');
$show_voided_credits = $cgi->param('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 = '';
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
05282e3
..
f7d3880
100644
(file)
--- a/
httemplate/search/report_cust_credit.html
+++ b/
httemplate/search/report_cust_credit.html
@@
-24,8
+24,10
@@
'field' => 'amount',
&>
'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>
'Unapplied credit report' : 'Credit report';
</%init>
-