[freeside-commits] freeside/bin import-did-inventory, 1.1.2.5, 1.1.2.6

Erik Levinson levinse at wavetail.420.am
Thu Jun 9 17:30:58 PDT 2011


Update of /home/cvs/cvsroot/freeside/bin
In directory wavetail.420.am:/tmp/cvs-serv2985/bin

Modified Files:
      Tag: FREESIDE_2_1_BRANCH
	import-did-inventory 
Log Message:
DID inventory/import / bulk DID orders - phase 2, RT12754

Index: import-did-inventory
===================================================================
RCS file: /home/cvs/cvsroot/freeside/bin/import-did-inventory,v
retrieving revision 1.1.2.5
retrieving revision 1.1.2.6
diff -u -w -d -r1.1.2.5 -r1.1.2.6
--- import-did-inventory	8 Jun 2011 05:38:56 -0000	1.1.2.5
+++ import-did-inventory	10 Jun 2011 00:30:56 -0000	1.1.2.6
@@ -363,7 +363,7 @@
         fatal("customer mismatch for vendor order #$vendor_order_id")
             unless (    ($o->custnum && $cust{'custnum'} 
                           && ($o->custnum == $cust{'custnum'} 
-                            || $vendor_order_id eq '293745')
+                            || $vendor_order_id eq '293745' || $vendor_order_id eq '300001')
                         )
                         ||
                         (!$o->custnum && !exists($cust{'custnum'}))
@@ -400,11 +400,10 @@
             phonenum    => $did,
         });
     
-    # XXX: THIS LINE CAUSES PERFORMANCE TO DEGRADE AND THE SCRIPT NEVER FINISHES! WHY!?
+    # XXX: THIS LINE CAUSES PERFORMANCE TO DEGRADE
     # -unattaching the exports has no effect
     # -after each successive call, the time taken to complete 100 rows becomes greater
     # -commenting out this call results in a constant time taken to complete 100 rows
-    # -after 10K rows we get a random error that makes no sense
     my $error = $svc_phone->insert;
 
     fatal("can't insert svc_phone: $error") if $error;



More information about the freeside-commits mailing list