X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2FSetup.pm;h=3c8e817d6272c7c8686a958a14e4ae6092953076;hb=7d0b690f5684cdfdcd68d25568a101f6b088ad98;hp=6807ef76ea4e07bad7559418fcfeff643ed93b7d;hpb=dc39152e4b1b881f0115aa5cbe42fbf48a71e5c5;p=freeside.git diff --git a/FS/FS/Setup.pm b/FS/FS/Setup.pm index 6807ef76e..3c8e817d6 100644 --- a/FS/FS/Setup.pm +++ b/FS/FS/Setup.pm @@ -150,6 +150,9 @@ sub populate_initial_data { eval "use $class;"; die $@ if $@; + $class->_populate_initial_data(%opt) + if $class->can('_populate_inital_data'); + my @records = @{ $data->{$table} }; foreach my $record ( @records ) { @@ -175,6 +178,9 @@ sub initial_data { { 'groupname' => 'Superuser' }, ], + #reason types + 'reason_type' => [], + #XXX need default new-style billing events # #billing events # 'part_bill_event' => [ @@ -335,6 +341,10 @@ sub initial_data { #not yet.... #) + + #usage classes + 'usage_class' => [], + ; \%hash; @@ -451,6 +461,10 @@ sub msgcat_messages { 'en_US' => 'Username in use', }, + 'phonenum_in_use' => { + 'en_US' => 'Phone number in use', + }, + 'illegal_email_invoice_address' => { 'en_US' => 'Illegal email invoice address', }, @@ -498,6 +512,10 @@ sub msgcat_messages { 'en_US' => 'Driver\'s License State', }, + 'invalid_domain' => { + 'en_US' => 'Invalid domain', + }, + ); }