projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ignore discount duration when applying to setup fee, #38489
[freeside.git]
/
httemplate
/
elements
/
tr-select-discount.html
diff --git
a/httemplate/elements/tr-select-discount.html
b/httemplate/elements/tr-select-discount.html
index
ee86251
..
faa65e1
100644
(file)
--- a/
httemplate/elements/tr-select-discount.html
+++ b/
httemplate/elements/tr-select-discount.html
@@
-53,6
+53,13
@@
)
%>
)
%>
+% if ( $opt{'setup_only'} ) {
+ <& /elements/hidden.html,
+ 'field' => $name.'_setup',
+ 'id' => $name.'_setup',
+ 'value' => 'Y'
+ &>
+% } else { # normal case, allow the user to choose
<% include( '/elements/tr-input-text.html',
'label' => '<B>Discount duration (months)</B>',
'field' => $name. '_months',
<% include( '/elements/tr-input-text.html',
'label' => '<B>Discount duration (months)</B>',
'field' => $name. '_months',
@@
-73,6
+80,7
@@
'colspan' => $opt{'colspan'},
)
%>
'colspan' => $opt{'colspan'},
)
%>
+% }
%# <% include( '/elements/tr-checkbox.html',
%# 'label' => '<B>Apply discount to add-on packages</B>',
%# <% include( '/elements/tr-checkbox.html',
%# 'label' => '<B>Apply discount to add-on packages</B>',