ignore pkg_svc quantities when changing a customer location, #20588
[freeside.git] / FS / FS / cust_location.pm
index 1521960..b86529b 100644 (file)
@@ -324,6 +324,9 @@ sub move_to {
   my $dbh = dbh;
   my $error = '';
 
+  # prevent this from failing because of pkg_svc quantity limits
+  local( $FS::cust_svc::ignore_quantity ) = 1;
+
   if ( !$new->locationnum ) {
     $error = $new->insert;
     if ( $error ) {