summaryrefslogtreecommitdiff
path: root/FS
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2014-01-16 01:55:23 -0800
committerIvan Kohler <ivan@freeside.biz>2014-01-16 01:55:23 -0800
commitc78fb6183630e524d5fbf587321f552a470afc02 (patch)
tree4508bd886c51cd3b90ef5dcd10d78cbf6d689000 /FS
parent7070356f09267ce78440bff9f36d7ce6cfcd1802 (diff)
don't allow a start date for packages definitions with prorate_defer_bill, RT#25650
Diffstat (limited to 'FS')
-rw-r--r--FS/FS/part_pkg/delayed_Mixin.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/FS/FS/part_pkg/delayed_Mixin.pm b/FS/FS/part_pkg/delayed_Mixin.pm
index ae286d351..751a72357 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;