[freeside-commits] branch FREESIDE_3_BRANCH updated. 368e59b1cf6e7b9d80d0175458c0aa00c2aa74b6

Ivan ivan at 420.am
Mon Sep 9 00:33:33 PDT 2013


The branch, FREESIDE_3_BRANCH has been updated
       via  368e59b1cf6e7b9d80d0175458c0aa00c2aa74b6 (commit)
      from  b3d1c3b997841b5918c37720d440038dd9947410 (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 368e59b1cf6e7b9d80d0175458c0aa00c2aa74b6
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Mon Sep 9 00:33:32 2013 -0700

    optimizations inserting large numbers of services w/cust_svc::ignore_quantity, RT#24767

diff --git a/FS/FS/cust_svc.pm b/FS/FS/cust_svc.pm
index 7946a88..b48e146 100644
--- a/FS/FS/cust_svc.pm
+++ b/FS/FS/cust_svc.pm
@@ -351,7 +351,7 @@ sub check {
   my $part_svc = qsearchs( 'part_svc', { 'svcpart' => $self->svcpart } );
   return "Unknown svcpart" unless $part_svc;
 
-  if ( $self->pkgnum ) {
+  if ( $self->pkgnum && ! $ignore_quantity ) {
     my $cust_pkg = qsearchs( 'cust_pkg', { 'pkgnum' => $self->pkgnum } );
     return "Unknown pkgnum" unless $cust_pkg;
     ($part_svc) = grep { $_->svcpart == $self->svcpart } $cust_pkg->part_svc;

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

Summary of changes:
 FS/FS/cust_svc.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)




More information about the freeside-commits mailing list