diff options
author | Mark Wells <mark@freeside.biz> | 2013-06-26 23:38:04 -0700 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2013-06-26 23:38:04 -0700 |
commit | a281af4caba53bfd4219bab5d07ce4153a83125a (patch) | |
tree | 355c65c4c384d9b94eb4e15d7bf02c9035989a43 | |
parent | 9cccdd3ae700bd7221799ac42e241979d656f5e5 (diff) |
give supplemental packages the same location as their parent, #23748
-rw-r--r-- | FS/FS/cust_main/Packages.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/FS/FS/cust_main/Packages.pm b/FS/FS/cust_main/Packages.pm index 8484df50e..152c496d1 100644 --- a/FS/FS/cust_main/Packages.pm +++ b/FS/FS/cust_main/Packages.pm @@ -183,7 +183,6 @@ sub order_pkg { 'pkglinknum' => $link->pkglinknum, 'custnum' => $self->custnum, 'main_pkgnum' => $cust_pkg->pkgnum, - 'locationnum' => $cust_pkg->locationnum, # try to prevent as many surprises as possible 'pkgbatch' => $cust_pkg->pkgbatch, 'start_date' => $cust_pkg->start_date, @@ -196,7 +195,8 @@ sub order_pkg { 'waive_setup' => $cust_pkg->waive_setup, 'allow_pkgpart' => $opt->{'allow_pkgpart'}, }); - $error = $self->order_pkg('cust_pkg' => $pkg); + $error = $self->order_pkg('cust_pkg' => $pkg, + 'locationnum' => $cust_pkg->locationnum); if ( $error ) { $dbh->rollback if $oldAutoCommit; return "inserting supplemental package: $error"; |