[freeside-commits] branch master updated. 2d2fad4dc5654636abf690e0980b851540f64a5b

Mark Wells mark at 420.am
Wed May 22 14:41:35 PDT 2013


The branch, master has been updated
       via  2d2fad4dc5654636abf690e0980b851540f64a5b (commit)
      from  6ce6794cdbf96da682249d66504fef237b54bf0f (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 2d2fad4dc5654636abf690e0980b851540f64a5b
Author: Mark Wells <mark at freeside.biz>
Date:   Wed May 22 14:41:10 2013 -0700

    fix interaction between customer location change and supplemental packages, #23124

diff --git a/FS/FS/cust_location.pm b/FS/FS/cust_location.pm
index 4560716..1cb5e52 100644
--- a/FS/FS/cust_location.pm
+++ b/FS/FS/cust_location.pm
@@ -424,9 +424,13 @@ sub move_to {
     }
   }
 
+  # find all packages that have the old location as their service address,
+  # and aren't canceled,
+  # and aren't supplemental to another package.
   my @pkgs = qsearch('cust_pkg', { 
       'locationnum' => $old->locationnum,
-      'cancel' => '' 
+      'cancel'      => '',
+      'main_pkgnum' => '',
     });
   foreach my $cust_pkg (@pkgs) {
     $error = $cust_pkg->change(

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

Summary of changes:
 FS/FS/cust_location.pm |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)




More information about the freeside-commits mailing list