From: Ivan Kohler Date: Tue, 16 Sep 2014 10:27:28 +0000 (-0700) Subject: fix package changes w/quantities, RT#29753 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=2eb4ef92fbea43f55fd705d604fda5c815f9eb9c fix package changes w/quantities, RT#29753 --- diff --git a/FS/FS/cust_pkg.pm b/FS/FS/cust_pkg.pm index 9da6a846f..059384911 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) {