[freeside-commits] branch FREESIDE_3_BRANCH updated. a5be7f4e5e7398207636d729a168211842ac706c
Mark Wells
mark at 420.am
Wed May 22 14:41:34 PDT 2013
The branch, FREESIDE_3_BRANCH has been updated
via a5be7f4e5e7398207636d729a168211842ac706c (commit)
from 43ff394383c58b3d918dd4798002126d203936c9 (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 a5be7f4e5e7398207636d729a168211842ac706c
Author: Mark Wells <mark at freeside.biz>
Date: Wed May 22 14:39:29 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