[freeside-commits] freeside/httemplate/edit part_pkg.cgi, 1.122.2.2, 1.122.2.3
Erik Levinson
levinse at wavetail.420.am
Thu Jul 7 10:01:00 PDT 2011
Update of /home/cvs/cvsroot/freeside/httemplate/edit
In directory wavetail.420.am:/tmp/cvs-serv4926/httemplate/edit
Modified Files:
Tag: FREESIDE_2_1_BRANCH
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.122.2.2
retrieving revision 1.122.2.3
diff -u -w -d -r1.122.2.2 -r1.122.2.3
--- part_pkg.cgi 21 Jun 2011 01:52:18 -0000 1.122.2.2
+++ part_pkg.cgi 7 Jul 2011 17:00:58 -0000 1.122.2.3
@@ -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