X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fpart_event%2FAction%2Freferral_pkg_billdate.pm;h=6b485e59bbba66751d923ee0138cf625544b133e;hb=cd3719db530b4bffc1f2fe860bbc7a52f4b2235c;hp=40d94e2d5b0783705297400f141fd26c0488eb4a;hpb=19d05a388f1525eeb776295dbba7e3beda9b84f3;p=freeside.git diff --git a/FS/FS/part_event/Action/referral_pkg_billdate.pm b/FS/FS/part_event/Action/referral_pkg_billdate.pm index 40d94e2d5..6b485e59b 100644 --- a/FS/FS/part_event/Action/referral_pkg_billdate.pm +++ b/FS/FS/part_event/Action/referral_pkg_billdate.pm @@ -21,6 +21,8 @@ sub option_fields { ); } +#false laziness w/referral_pkg_discount, probably should make +# Mixin/referral_pkg.pm if we need changes or anything else in this vein sub do_action { my( $self, $cust_object, $cust_event ) = @_; @@ -39,6 +41,8 @@ sub do_action { my $cust_pkg = $cust_pkg[0]; #only one + #end of false laziness + my $bill = $cust_pkg->bill || $cust_pkg->setup || time; $cust_pkg->bill(