From: Ivan Kohler Date: Mon, 18 Feb 2013 02:50:00 +0000 (-0800) Subject: fix setup fee discounts w/intro period price plans, RT#21063 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=413de0ecd1ed0ede46a0cbb83321b8e12ef10ffb;p=freeside.git fix setup fee discounts w/intro period price plans, RT#21063 --- diff --git a/FS/FS/part_pkg/delayed_Mixin.pm b/FS/FS/part_pkg/delayed_Mixin.pm index 83e543a4f..ab53bda06 100644 --- a/FS/FS/part_pkg/delayed_Mixin.pm +++ b/FS/FS/part_pkg/delayed_Mixin.pm @@ -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 {