[freeside-commits] branch master updated. 992f784a5f012c7a954f86c62d0977ec947a3170

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


The branch, master has been updated
       via  992f784a5f012c7a954f86c62d0977ec947a3170 (commit)
      from  3c6f0de5bf97a8a44e5d9e269629345305f87b1d (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 992f784a5f012c7a954f86c62d0977ec947a3170
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Mon Sep 9 00:33:31 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 7b35357..d6d7d4c 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