[freeside-commits] freeside/httemplate/edit/process cust_pkg_discount.html, 1.1, 1.2
Ivan,,,
ivan at wavetail.420.am
Thu Feb 4 19:02:58 PST 2010
- Previous message: [freeside-commits] freeside/FS/FS/part_pkg flat.pm,1.37,1.38
- Next message: [freeside-commits] freeside/FS/FS Schema.pm, 1.188, 1.189 cust_bill_pkg_discount.pm, NONE, 1.1 Mason.pm, 1.27, 1.28 cust_main.pm, 1.494, 1.495 cust_bill_pkg.pm, 1.48, 1.49 cust_pkg.pm, 1.152, 1.153
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/cvsroot/freeside/httemplate/edit/process
In directory wavetail.420.am:/tmp/cvs-serv17481/httemplate/edit/process
Modified Files:
cust_pkg_discount.html
Log Message:
discounts, RT#6679
Index: cust_pkg_discount.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/process/cust_pkg_discount.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- cust_pkg_discount.html 30 Jan 2010 23:00:25 -0000 1.1
+++ cust_pkg_discount.html 5 Feb 2010 03:02:56 -0000 1.2
@@ -29,22 +29,18 @@
});
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;
- Previous message: [freeside-commits] freeside/FS/FS/part_pkg flat.pm,1.37,1.38
- Next message: [freeside-commits] freeside/FS/FS Schema.pm, 1.188, 1.189 cust_bill_pkg_discount.pm, NONE, 1.1 Mason.pm, 1.27, 1.28 cust_main.pm, 1.494, 1.495 cust_bill_pkg.pm, 1.48, 1.49 cust_pkg.pm, 1.152, 1.153
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the freeside-commits
mailing list