[freeside-commits] branch master updated. 725a774d23a1f9a1869929b3293ffd37df2f05f9

Mark Wells mark at 420.am
Mon Mar 23 17:31:45 PDT 2015


The branch, master has been updated
       via  725a774d23a1f9a1869929b3293ffd37df2f05f9 (commit)
      from  5f4099e52bd894d644c676ea75e1b0cb588393c8 (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 725a774d23a1f9a1869929b3293ffd37df2f05f9
Author: Mark Wells <mark at freeside.biz>
Date:   Mon Mar 23 17:31:01 2015 -0700

    don't enforce service quantity limits during location change, #33371

diff --git a/FS/FS/cust_pkg.pm b/FS/FS/cust_pkg.pm
index efe35ef..bafbb58 100644
--- a/FS/FS/cust_pkg.pm
+++ b/FS/FS/cust_pkg.pm
@@ -2033,7 +2033,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.

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/cust_pkg.pm |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)




More information about the freeside-commits mailing list