fix setup fee discounts w/intro period price plans, RT#21063
authorIvan Kohler <ivan@freeside.biz>
Mon, 18 Feb 2013 02:49:59 +0000 (18:49 -0800)
committerIvan Kohler <ivan@freeside.biz>
Mon, 18 Feb 2013 02:49:59 +0000 (18:49 -0800)
FS/FS/part_pkg/delayed_Mixin.pm

index 83e543a..ab53bda 100644 (file)
@@ -23,7 +23,8 @@ use NEXT;
 );
 
 sub calc_setup {
-  my($self, $cust_pkg, $time ) = @_;
+  my $self = shift;
+  my( $cust_pkg, $time ) = @_;
 
   unless ( $self->option('delay_setup', 1) ) {
     my $d = $cust_pkg->bill || $time;
@@ -31,7 +32,7 @@ sub calc_setup {
     $cust_pkg->bill($d);
   }
   
-  $self->option('setup_fee');
+  $self->NEXT::calc_setup(@_);
 }
 
 sub calc_remain {