freeside/bin artera.import,1.2,1.3

ivan ivan at pouncequick.420.am
Wed Oct 20 01:20:38 PDT 2004


Update of /home/cvs/cvsroot/freeside/bin
In directory pouncequick:/tmp/cvs-serv20307

Modified Files:
	artera.import 
Log Message:
locate existing ones by title, warn on errors

Index: artera.import
===================================================================
RCS file: /home/cvs/cvsroot/freeside/bin/artera.import,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- artera.import	20 Oct 2004 08:14:11 -0000	1.2
+++ artera.import	20 Oct 2004 08:20:36 -0000	1.3
@@ -47,7 +47,7 @@
   #  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 @@
   #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;




More information about the freeside-commits mailing list