summaryrefslogtreecommitdiff
path: root/httemplate
diff options
context:
space:
mode:
authorivan <ivan>2010-02-05 03:02:56 +0000
committerivan <ivan>2010-02-05 03:02:56 +0000
commit50aae8bb98effd9b9cc4736aa6d3333245d349d8 (patch)
tree8ece682ccfa9b3fad45030342ce33368760f109e /httemplate
parent8a0204b4a129a3c26dcca18ba401b2de26d22d2b (diff)
discounts, RT#6679
Diffstat (limited to 'httemplate')
-rw-r--r--httemplate/edit/process/cust_pkg_discount.html16
1 files changed, 6 insertions, 10 deletions
diff --git a/httemplate/edit/process/cust_pkg_discount.html b/httemplate/edit/process/cust_pkg_discount.html
index 4a31b922a..e3249d79c 100644
--- a/httemplate/edit/process/cust_pkg_discount.html
+++ b/httemplate/edit/process/cust_pkg_discount.html
@@ -29,22 +29,18 @@ my $cust_pkg = qsearchs({
});
die 'unknown pkgnum' unless $cust_pkg;
-#XXX something not unlike this for custom discounts
-#if ( $cgi->param('locationnum') == -1 ) {
-# my $cust_location = new FS::cust_location {
-# 'custnum' => $cust_pkg->custnum,
-# map { $_ => scalar($cgi->param($_)) }
-# qw( address1 address2 city county state zip country )
-# };
-# $change{'cust_location'} = $cust_location;
-#}
-
my $cust_pkg_discount = new FS::cust_pkg_discount {
'pkgnum' => $cust_pkg->pkgnum,
'discountnum' => scalar($cgi->param('discountnum')),
'months_used' => 0,
'end_date' => '', #XXX
'otaker' => $curuser->username,
+ #for the create a new discount case
+ '_type' => scalar($cgi->param('discountnum__type')),
+ 'amount' => scalar($cgi->param('discountnum_amount')),
+ 'percent' => scalar($cgi->param('discountnum_percent')),
+ 'months' => scalar($cgi->param('discountnum_months')),
+ #'disabled' => $self->discountnum_disabled,
};
my $error = $cust_pkg_discount->insert;