X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=bin%2Fimport-did-inventory;h=f3646647eeb932c62ac0fc0b180a301d23f936bc;hb=30aa93eea617fc2f4c30dfc6f608d32cb8fc38fd;hp=99c68bdac5fd7f59a181150886dd727b2e3fb61a;hpb=e1768291d6475a8e42c04e2a28037a422cbac042;p=freeside.git diff --git a/bin/import-did-inventory b/bin/import-did-inventory index 99c68bdac..f3646647e 100644 --- a/bin/import-did-inventory +++ b/bin/import-did-inventory @@ -23,10 +23,10 @@ use Time::HiRes qw(usleep ualarm gettimeofday tv_interval); print "started time=".time."\n"; #### SET THESE! ################################# -my $file = '/home/levinse/dids1.csv'; +my $file = '/home/levinse/dids4.csv'; my $did_vendor_id = 1; my $dry = 0; -my $internal_diddb_exportnum = 2; # IMPORTANT: set this to the correct exportnum or everything will go in wrong into phone_avail +my $internal_diddb_exportnum = 1; # IMPORTANT: set this to the correct exportnum or everything will go in wrong into phone_avail # optionally set this one (probably not) my %custname2num = (); # MyCust => 12345, @@ -90,7 +90,7 @@ $latas{636} = 'BRAINERD-FARGO ND'; $latas{920} = 'CONNECTICUT'; $latas{334} = 'AUBURN-HUNTINGTON IN'; $latas{232} = 'NORTHEAST - PA'; -$latas{460} = 'SOUTHEAST FL GG-EA'; +$latas{460} = 'SOUTHEAST FL GR-EA'; $latas{952} = 'TAMPA FLORIDA'; $latas{524} = 'KANSAS CITY'; @@ -164,7 +164,8 @@ sub suffer { ### LATA ### - fatal("no lata found for latanum $latanum") unless exists($latas{$latanum}); + fatal("no lata found for latanum $latanum") unless exists($latas{$latanum}) + || $latanum == 460; # unsurprisingly, our idea of a LATA name doesn't always match their idea # of the same. Specifically, they randomly expand the state portion and @@ -179,7 +180,7 @@ sub suffer { $latadesc =~ s/\s\w+$// unless uc($ourdesc) eq uc($latadesc); # yeah...long story :( fatal("their LATA description '$latadesc' doesn't match our LATA description '$ourdesc'") - unless uc($ourdesc) eq uc($latadesc); + unless (uc($ourdesc) eq uc($latadesc) || $latanum == 460); ### MSA ###