diff options
author | ivan <ivan> | 2011-03-10 09:42:08 +0000 |
---|---|---|
committer | ivan <ivan> | 2011-03-10 09:42:08 +0000 |
commit | a46d6ebede6bab9d05b054e82004e07ea8aabbb5 (patch) | |
tree | b62c1d2d3a13c6a6017592e420200ca77945de21 | |
parent | f9a181e4c2e505df84de16190ee3b75011326f3f (diff) |
prevent all-too-common mistake of editing package dates manually to have a start date and a setup date, RT#11937
-rw-r--r-- | FS/FS/cust_pkg.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/FS/FS/cust_pkg.pm b/FS/FS/cust_pkg.pm index c31b7e5d5..2efd4fd87 100644 --- a/FS/FS/cust_pkg.pm +++ b/FS/FS/cust_pkg.pm @@ -598,6 +598,9 @@ sub check { ; return $error if $error; + return "A package with both start date (future start) and setup date (already started) will never bill" + if $self->start_date && $self->setup; + $self->usernum($FS::CurrentUser::CurrentUser->usernum) unless $self->usernum; if ( $self->dbdef_table->column('manual_flag') ) { |