summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorivan <ivan>2007-11-06 01:59:34 +0000
committerivan <ivan>2007-11-06 01:59:34 +0000
commit3dfc163db6104893ed1a252cf15b58967d93fe77 (patch)
tree8aeaca8a0fbd0349a3c08bd587c62ab54b61ba4b /bin
parentd4cfe61f93bbdc0c5ff24db916ca795578c02869 (diff)
keep our own list of states; remove some states that Data::Faker and Locale::SubCountry disagree on
Diffstat (limited to 'bin')
-rwxr-xr-xbin/customer-faker10
1 files changed, 7 insertions, 3 deletions
diff --git a/bin/customer-faker b/bin/customer-faker
index b4032d1ec..d57e5e1de 100755
--- a/bin/customer-faker
+++ b/bin/customer-faker
@@ -13,8 +13,8 @@ use FS::svc_acct;
my $agentnum = 1;
my $refnum = 1;
-#my @pkgs = ( 2, 3, 4 );
-my @pkgs = ( 4, 5, 6 );
+my @pkgs = ( 2, 3, 4 );
+#my @pkgs = ( 4, 5, 6 );
my $svcpart = 2;
use vars qw( $opt_p );
@@ -27,6 +27,9 @@ adminsuidsetup($user);
my $onum = $num;
my $start = time;
+my @states = qw( AL AK AS AZ AR CA CO CT DE DC FL GA GU HI ID IL IN IA KS KY LA ME MD MA MI MN MS MO MT NE NV NH NJ NM NY NC ND MP OH OK OR PA PR RI SC SD TN TX UT VT VI VA WA WV WI WY );
+#FM MH
+
until ( $num-- <= 0 ) {
my $faker = new Data::Faker;
@@ -39,7 +42,8 @@ until ( $num-- <= 0 ) {
'company' => ( $num % 2 ? $faker->company. ', '. $faker->company_suffix : '' ), #half with companies..
'address1' => $faker->street_address,
'city' => 'Tofutown', #missing, so everyone is from tofutown# $faker->city,
- 'state' => $faker->us_state_abbr,
+ #'state' => $faker->us_state_abbr,
+ 'state' => $states[ int(rand($#states)) ],
'zip' => $faker->us_zip_code,
'country' => 'US',
'daytime' => $faker->phone_number,