diff options
author | levinse <levinse> | 2011-04-29 12:12:45 +0000 |
---|---|---|
committer | levinse <levinse> | 2011-04-29 12:12:45 +0000 |
commit | e774555a6ae69da65e7774c701232fdf9dd052b1 (patch) | |
tree | 3807379817a297a53b27b1f6d8c8c7ec758f6713 /httemplate/edit | |
parent | 91fd4ea0e91ee9e6717e0b12e01eebb8f8b21322 (diff) |
apply discount to setup fees, part 1 of 2, RT11512
Diffstat (limited to 'httemplate/edit')
-rw-r--r-- | httemplate/edit/discount.html | 2 | ||||
-rw-r--r-- | httemplate/edit/process/cust_pkg_discount.html | 1 | ||||
-rw-r--r-- | httemplate/edit/process/quick-cust_pkg.cgi | 1 |
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 ', 'percent' => 'Percentage ', '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')) : '' |