[freeside-commits] branch FREESIDE_2_3_BRANCH updated. 1929eefb29ccec72feabb3313ddb8a0640f42483
Ivan
ivan at 420.am
Mon Sep 9 00:33:34 PDT 2013
The branch, FREESIDE_2_3_BRANCH has been updated
via 1929eefb29ccec72feabb3313ddb8a0640f42483 (commit)
from d8b9c190ed5476473dc4d9a3f71cd08dace2f59b (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 1929eefb29ccec72feabb3313ddb8a0640f42483
Author: Ivan Kohler <ivan at freeside.biz>
Date: Mon Sep 9 00:33:33 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 af74cb5..4d70183 100644
--- a/FS/FS/cust_svc.pm
+++ b/FS/FS/cust_svc.pm
@@ -318,7 +318,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