projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
915ae2a
)
RT#14671: Usage for current day when billing outstanding usage (for cancelling custom...
author
Jonathan Prykop
<jonathan@freeside.biz>
Thu, 12 Feb 2015 04:07:12 +0000
(22:07 -0600)
committer
Jonathan Prykop
<jonathan@freeside.biz>
Thu, 12 Feb 2015 04:07:12 +0000
(22:07 -0600)
FS/FS/part_pkg_link.pm
patch
|
blob
|
history
diff --git
a/FS/FS/part_pkg_link.pm
b/FS/FS/part_pkg_link.pm
index
aee0131
..
2460e99
100644
(file)
--- 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;