[freeside-commits] branch FREESIDE_3_BRANCH updated. 2eb4ef92fbea43f55fd705d604fda5c815f9eb9c

Ivan ivan at 420.am
Tue Sep 16 03:27:30 PDT 2014


The branch, FREESIDE_3_BRANCH has been updated
       via  2eb4ef92fbea43f55fd705d604fda5c815f9eb9c (commit)
      from  b2101517513739ce744ecffad184a8a358c2d6c7 (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 2eb4ef92fbea43f55fd705d604fda5c815f9eb9c
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Tue Sep 16 03:27:28 2014 -0700

    fix package changes w/quantities, RT#29753

diff --git a/FS/FS/cust_pkg.pm b/FS/FS/cust_pkg.pm
index 9da6a84..0593849 100644
--- a/FS/FS/cust_pkg.pm
+++ b/FS/FS/cust_pkg.pm
@@ -3639,7 +3639,7 @@ sub transfer {
   return ('Package does not exist: '.$dest_pkgnum) unless $dest;
 
   foreach my $pkg_svc ( $dest->part_pkg->pkg_svc ) {
-    $target{$pkg_svc->svcpart} = $pkg_svc->quantity;
+    $target{$pkg_svc->svcpart} = $pkg_svc->quantity * ( $dest->quantity || 1 );
   }
 
   foreach my $cust_svc ($dest->cust_svc) {

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

Summary of changes:
 FS/FS/cust_pkg.pm |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)




More information about the freeside-commits mailing list