[freeside-commits] freeside/FS/FS cust_pkg.pm,1.198,1.199
Ivan,,,
ivan at wavetail.420.am
Thu Mar 10 01:42:11 PST 2011
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv12871
Modified Files:
cust_pkg.pm
Log Message:
prevent all-too-common mistake of editing package dates manually to have a start date and a setup date, RT#11937
Index: cust_pkg.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_pkg.pm,v
retrieving revision 1.198
retrieving revision 1.199
diff -u -w -d -r1.198 -r1.199
--- cust_pkg.pm 21 Feb 2011 01:21:14 -0000 1.198
+++ cust_pkg.pm 10 Mar 2011 09:42:08 -0000 1.199
@@ -598,6 +598,9 @@
;
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') ) {
More information about the freeside-commits
mailing list