summaryrefslogtreecommitdiff
path: root/FS
diff options
context:
space:
mode:
authorivan <ivan>2003-11-11 14:21:02 +0000
committerivan <ivan>2003-11-11 14:21:02 +0000
commit024ff792bac5bff12b02f08dbdba8134f82fe1dc (patch)
tree498bf41bb2768efa5b7464150f6287da7ccd2c27 /FS
parent8cb3d9ff1a0d7e82b603e0ce15e4a62c182537c4 (diff)
simple change to cust_svc creation to help imports with svcnums
Diffstat (limited to 'FS')
-rw-r--r--FS/FS/svc_Common.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/FS/FS/svc_Common.pm b/FS/FS/svc_Common.pm
index 7bc155d9d..73e08f239 100644
--- a/FS/FS/svc_Common.pm
+++ b/FS/FS/svc_Common.pm
@@ -119,9 +119,11 @@ sub insert {
my $svcnum = $self->svcnum;
my $cust_svc;
- unless ( $svcnum ) {
+ #unless ( $svcnum ) {
+ if ( ! $svcnum || ! qsearchs('cust_svc',{'svcnum'=>$self->svcnum} ) ) {
$cust_svc = new FS::cust_svc ( {
#hua?# 'svcnum' => $svcnum,
+ 'svcnum' => $self->svcnum,
'pkgnum' => $self->pkgnum,
'svcpart' => $self->svcpart,
} );