[freeside-commits] branch master updated. cdb2e71e99c787b016428ff3e04caf3ac87b5ff6

Ivan ivan at 420.am
Thu Jan 16 01:55:23 PST 2014


The branch, master has been updated
       via  cdb2e71e99c787b016428ff3e04caf3ac87b5ff6 (commit)
      from  ad4bf730d6e96f0acf589c00ff31eaa64f60b0b7 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit cdb2e71e99c787b016428ff3e04caf3ac87b5ff6
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Thu Jan 16 01:55:21 2014 -0800

    don't allow a start date for packages definitions with prorate_defer_bill, RT#25650

diff --git a/FS/FS/part_pkg/delayed_Mixin.pm b/FS/FS/part_pkg/delayed_Mixin.pm
index ae286d3..751a723 100644
--- a/FS/FS/part_pkg/delayed_Mixin.pm
+++ b/FS/FS/part_pkg/delayed_Mixin.pm
@@ -51,7 +51,10 @@ sub calc_remain {
   return $self->NEXT::calc_remain($cust_pkg, %options);
 }
 
-sub can_start_date { ! shift->option('delay_setup', 1) }
+sub can_start_date {
+  my $self = shift;
+  ! $self->option('delay_setup', 1) && $self->NEXT::can_start_date(@_);
+}
 
 sub default_start_date {
   my $self = shift;

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/part_pkg/delayed_Mixin.pm |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)




More information about the freeside-commits mailing list