X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fcust_pkg.pm;h=3e37ec9e96fb41365ce6c79f8f3f651b452e9ac1;hb=74a3083375ccc3a0dc8b74f9b39392989d088656;hp=ebc94e7ebc8b6487963d10509869dcccf678337c;hpb=29472410e3b882a6a6b74fe48d28db411fe8fcff;p=freeside.git diff --git a/FS/FS/cust_pkg.pm b/FS/FS/cust_pkg.pm index ebc94e7eb..3e37ec9e9 100644 --- a/FS/FS/cust_pkg.pm +++ b/FS/FS/cust_pkg.pm @@ -153,10 +153,6 @@ date date -=item contract_end - -date - =item cancel date @@ -263,7 +259,7 @@ sub insert { $self->start_date( timelocal_nocheck(0,0,0,1,$mon,$year) ); } - foreach my $action ( qw(expire adjourn contract_end) ) { + foreach my $action ( qw(expire adjourn) ) { my $months = $self->part_pkg->option("${action}_months",1); if($months and !$self->$action) { my $start = $self->start_date || $self->setup || time; @@ -2810,7 +2806,7 @@ sub search { "NOT (".FS::cust_pkg->onetime_sql . ")"; } else { - foreach my $field (qw( setup last_bill bill adjourn susp expire contract_end cancel )) { + foreach my $field (qw( setup last_bill bill adjourn susp expire cancel )) { next unless exists($params->{$field});