summaryrefslogtreecommitdiff
path: root/httemplate/elements/tr-select-discount.html
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2015-11-05 19:55:26 -0800
committerMark Wells <mark@freeside.biz>2015-11-05 19:56:05 -0800
commite2d16c850d8857567023f10b8c57daf0570c6a8e (patch)
tree7dec4e22e0018f3d94b1715df9dd6777c15a731d /httemplate/elements/tr-select-discount.html
parentf8c4741390077c1448d627949d19c9220cc8e610 (diff)
ignore discount duration when applying to setup fee, #38489
Diffstat (limited to 'httemplate/elements/tr-select-discount.html')
-rw-r--r--httemplate/elements/tr-select-discount.html8
1 files changed, 8 insertions, 0 deletions
diff --git a/httemplate/elements/tr-select-discount.html b/httemplate/elements/tr-select-discount.html
index ee862519f..faa65e1f7 100644
--- 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',
@@ -73,6 +80,7 @@
'colspan' => $opt{'colspan'},
)
%>
+% }
%# <% include( '/elements/tr-checkbox.html',
%# 'label' => '<B>Apply discount to add-on packages</B>',