summaryrefslogtreecommitdiff
path: root/httemplate/edit
diff options
context:
space:
mode:
Diffstat (limited to 'httemplate/edit')
-rw-r--r--httemplate/edit/discount.html2
-rw-r--r--httemplate/edit/process/cust_pkg_discount.html1
-rw-r--r--httemplate/edit/process/quick-cust_pkg.cgi1
3 files changed, 4 insertions, 0 deletions
diff --git a/httemplate/edit/discount.html b/httemplate/edit/discount.html
index 6e0d8e1a7..b195eb37b 100644
--- a/httemplate/edit/discount.html
+++ b/httemplate/edit/discount.html
@@ -21,6 +21,7 @@
{ field => 'months', type => 'text', size => 2,
postfix => '<BR><FONT SIZE="-1"><I>(blank for non-expiring discount)</I></FONT>',
},
+ { field => 'setup', type => 'checkbox', value=>'Y', },
],
'labels' => {
'discountnum' => 'Discount #',
@@ -30,6 +31,7 @@
'amount' => 'Amount&nbsp;',
'percent' => 'Percentage&nbsp;',
'months' => 'Duration (months)',
+ 'setup' => 'Apply to setup fees',
},
'viewall_dir' => 'browse',
'new_callback' => $new_callback,
diff --git a/httemplate/edit/process/cust_pkg_discount.html b/httemplate/edit/process/cust_pkg_discount.html
index ad9842a89..6f97a791e 100644
--- a/httemplate/edit/process/cust_pkg_discount.html
+++ b/httemplate/edit/process/cust_pkg_discount.html
@@ -39,6 +39,7 @@ my $cust_pkg_discount = new FS::cust_pkg_discount {
'amount' => scalar($cgi->param('discountnum_amount')),
'percent' => scalar($cgi->param('discountnum_percent')),
'months' => scalar($cgi->param('discountnum_months')),
+ 'setup' => scalar($cgi->param('discountnum_setup')),
#'disabled' => $self->discountnum_disabled,
};
my $error = $cust_pkg_discount->insert;
diff --git a/httemplate/edit/process/quick-cust_pkg.cgi b/httemplate/edit/process/quick-cust_pkg.cgi
index bf5087c5e..4ab56e19a 100644
--- a/httemplate/edit/process/quick-cust_pkg.cgi
+++ b/httemplate/edit/process/quick-cust_pkg.cgi
@@ -91,6 +91,7 @@ my $cust_pkg = new FS::cust_pkg {
'discountnum_amount' => scalar($cgi->param('discountnum_amount')),
'discountnum_percent' => scalar($cgi->param('discountnum_percent')),
'discountnum_months' => scalar($cgi->param('discountnum_months')),
+ 'discountnum_setup' => scalar($cgi->param('discountnum_setup')),
'contract_end' => ( scalar($cgi->param('contract_end'))
? parse_datetime($cgi->param('contract_end'))
: ''