X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2FSetup.pm;h=e27b66fc595e269342aa595097f9f17f2f2222b6;hb=35441752ed24a30b2ccba25db4322d9ddbc88f2d;hp=e1d890aaa05f554a916a57009250565bcdbf5ee9;hpb=72e94d128a662b7a391b7a90060b5aa07cdef173;p=freeside.git diff --git a/FS/FS/Setup.pm b/FS/FS/Setup.pm index e1d890aaa..e27b66fc5 100644 --- a/FS/FS/Setup.pm +++ b/FS/FS/Setup.pm @@ -57,6 +57,8 @@ sub create_initial_data { populate_numbering(); + enable_encryption(); + if ( $oldAutoCommit ) { dbh->commit or die dbh->errstr; } @@ -207,6 +209,14 @@ sub populate_initial_data { sub initial_data { my %opt = @_; + my $cust_location = FS::cust_location->new({ + 'address1' => '1234 System Lane', + 'city' => 'Systemtown', + 'state' => 'CA', + 'zip' => '54321', + 'country' => 'US', + }); + #tie my %hash, 'Tie::DxHash', tie my %hash, 'Tie::IxHash', @@ -349,14 +359,11 @@ sub initial_data { 'refnum' => 1, #XXX 'first' => 'System', 'last' => 'Accounts', - 'address1' => '1234 System Lane', - 'city' => 'Systemtown', - 'state' => 'CA', - 'zip' => '54321', - 'country' => 'US', 'payby' => 'COMP', 'payinfo' => 'system', #or something 'paydate' => '1/2037', + 'bill_location' => $cust_location, + 'ship_location' => $cust_location, }, ],