[freeside-commits] branch master updated. a98ce69c291c99710fc77a1b06286f44584e1f99
Jonathan Prykop
jonathan at 420.am
Wed Feb 11 20:07:30 PST 2015
The branch, master has been updated
via a98ce69c291c99710fc77a1b06286f44584e1f99 (commit)
from 915ae2a5a5cbe3bf70a9be5024ef6323c63f47b0 (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 a98ce69c291c99710fc77a1b06286f44584e1f99
Author: Jonathan Prykop <jonathan at freeside.biz>
Date: Wed Feb 11 22:07:12 2015 -0600
RT#14671: Usage for current day when billing outstanding usage (for cancelling customers) [added part_pkg_link check]
diff --git a/FS/FS/part_pkg_link.pm b/FS/FS/part_pkg_link.pm
index aee0131..2460e99 100644
--- a/FS/FS/part_pkg_link.pm
+++ b/FS/FS/part_pkg_link.pm
@@ -260,6 +260,11 @@ sub check {
") must be an integer multiple of main package period.";
}
}
+ if (( $src_pkg->option('delay_cancel',1) && !$dst_pkg->option('delay_cancel',1) ) ||
+ ( $dst_pkg->option('delay_cancel',1) && !$src_pkg->option('delay_cancel',1) )
+ ) {
+ return "Supplemental package must have same value as main package for automatic suspension on cancel.";
+ }
}
$self->SUPER::check;
-----------------------------------------------------------------------
Summary of changes:
FS/FS/part_pkg_link.pm | 5 +++++
1 file changed, 5 insertions(+)
More information about the freeside-commits
mailing list