[freeside-commits] freeside/httemplate/edit part_pkg.cgi, 1.124, 1.125
Erik Levinson
levinse at wavetail.420.am
Thu Jul 7 10:00:58 PDT 2011
Update of /home/cvs/cvsroot/freeside/httemplate/edit
In directory wavetail.420.am:/tmp/cvs-serv4920/httemplate/edit
Modified Files:
part_pkg.cgi
Log Message:
add a per-package disable_line_item_date_ranges option, RT13200
Index: part_pkg.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/part_pkg.cgi,v
retrieving revision 1.124
retrieving revision 1.125
diff -u -w -d -r1.124 -r1.125
--- part_pkg.cgi 21 Jun 2011 01:52:17 -0000 1.124
+++ part_pkg.cgi 7 Jul 2011 17:00:56 -0000 1.125
@@ -38,6 +38,7 @@
'taxproduct_select'=> 'Tax products',
'plan' => 'Price plan',
'disabled' => 'Disable new orders',
+ 'disable_line_item_date_ranges' => 'Disable line item date ranges',
'setup_cost' => 'Setup cost',
'recur_cost' => 'Recur cost',
'pay_weight' => 'Payment weight',
@@ -88,6 +89,7 @@
: ()
),
{field=>'disabled', type=>$disabled_type, value=>'Y'},
+ {field=>'disable_line_item_date_ranges', type=>$disabled_type, value=>'Y'},
{ type => 'tablebreak-tr-title',
value => 'Pricing', #better name?
@@ -369,9 +371,8 @@
}
@options;
- #$cgi->param($_, $options{$_}) foreach (qw( setup_fee recur_fee ));
$object->set($_ => scalar($cgi->param($_)) )
- foreach (qw( setup_fee recur_fee ));
+ foreach (qw( setup_fee recur_fee disable_line_item_date_ranges ));
$pkgpart = $object->pkgpart;
@@ -384,7 +385,7 @@
my $part_pkg = FS::part_pkg->new( $hashref );
$part_pkg->set($_ => '0')
- foreach (qw( setup_fee recur_fee ));
+ foreach (qw( setup_fee recur_fee disable_line_item_date_ranges ));
$part_pkg;
@@ -422,7 +423,7 @@
%options = $object->options;
$object->set($_ => $object->option($_))
- foreach (qw( setup_fee recur_fee ));
+ foreach (qw( setup_fee recur_fee disable_line_item_date_ranges ));
$pkgpart = $object->pkgpart;
@@ -468,7 +469,7 @@
%options = $object->options;
$object->set($_ => $options{$_})
- foreach (qw( setup_fee recur_fee ));
+ foreach (qw( setup_fee recur_fee disable_line_item_date_ranges ));
$recur_disabled = $object->freq ? 0 : 1;
};
More information about the freeside-commits
mailing list