don't enforce service quantity limits during location change, #33731
authorMark Wells <mark@freeside.biz>
Mon, 30 Mar 2015 23:22:06 +0000 (16:22 -0700)
committerMark Wells <mark@freeside.biz>
Mon, 30 Mar 2015 23:22:06 +0000 (16:22 -0700)
FS/FS/cust_pkg.pm

index 7f9c960..5f2cd83 100644 (file)
@@ -2081,7 +2081,9 @@ sub change {
   }
 
   # Transfer services and cancel old package.
-
+  # Enforce service limits only if this is a pkgpart change.
+  local $FS::cust_svc::ignore_quantity;
+  $FS::cust_svc::ignore_quantity = 1 if $same_pkgpart;
   $error = $self->transfer($cust_pkg);
   if ($error and $error == 0) {
     # $old_pkg->transfer failed.