X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=bin%2Fartera.import;fp=bin%2Fartera.import;h=75fe585d9f4054bd1b9b0183201fdf4306cb6a3f;hp=41cbe4b705c4e8852252c66d1574d118fca48809;hb=b04a3006d879feb010f79d5a504bd6aba64ae43f;hpb=fafe0bbcbd536ecb95edc6d17eea420d7d37a06a diff --git a/bin/artera.import b/bin/artera.import index 41cbe4b70..75fe585d9 100644 --- a/bin/artera.import +++ b/bin/artera.import @@ -47,7 +47,7 @@ while (<>) { # warn "can't find domain $domain\n"; } - my $exist = qsearchs('svc_external', { 'id' => $serial } ); + my $exist = qsearchs('svc_external', { 'title' => $keycode } ); next if $exist; my $svc_external = new FS::svc_external { @@ -59,10 +59,11 @@ while (<>) { #my $error = $svc_external->check; my $error = $svc_external->insert; if ( $cust_svc && $error =~ /^Already/ ) { + warn $error; $svc_external->pkgnum(''); $error = $svc_external->insert; } - die $error if $error; + warn $error if $error; $num++; $linked++ if $cust_svc;