projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
787275a
)
adding artera import
author
ivan
<ivan>
Wed, 20 Oct 2004 08:14:11 +0000
(08:14 +0000)
committer
ivan
<ivan>
Wed, 20 Oct 2004 08:14:11 +0000
(08:14 +0000)
bin/artera.import
patch
|
blob
|
history
diff --git
a/bin/artera.import
b/bin/artera.import
index
f7def1b
..
41cbe4b
100644
(file)
--- a/
bin/artera.import
+++ b/
bin/artera.import
@@
-47,6
+47,9
@@
while (<>) {
# warn "can't find domain $domain\n";
}
# warn "can't find domain $domain\n";
}
+ my $exist = qsearchs('svc_external', { 'id' => $serial } );
+ next if $exist;
+
my $svc_external = new FS::svc_external {
'svcpart' => $svcpart,
'pkgnum' => ( $cust_svc ? $cust_svc->pkgnum : '' ),
my $svc_external = new FS::svc_external {
'svcpart' => $svcpart,
'pkgnum' => ( $cust_svc ? $cust_svc->pkgnum : '' ),
@@
-55,6
+58,10
@@
while (<>) {
};
#my $error = $svc_external->check;
my $error = $svc_external->insert;
};
#my $error = $svc_external->check;
my $error = $svc_external->insert;
+ if ( $cust_svc && $error =~ /^Already/ ) {
+ $svc_external->pkgnum('');
+ $error = $svc_external->insert;
+ }
die $error if $error;
$num++;
die $error if $error;
$num++;