X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2FSetup.pm;h=cac26c1f5b507e6e47bd14c833b5962922bb0a4c;hb=18b6953b62a1b97f3121100e71bbbfc7d29e75a5;hp=e2c5a5a2c7b9b783f270d59c6051723e46d8e317;hpb=fb4ab1073f0d15d660c6cdc4e07afebf68ef3924;p=freeside.git diff --git a/FS/FS/Setup.pm b/FS/FS/Setup.pm index e2c5a5a2c..cac26c1f5 100644 --- a/FS/FS/Setup.pm +++ b/FS/FS/Setup.pm @@ -209,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', @@ -351,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, }, ], @@ -395,6 +400,9 @@ sub initial_data { #phone types 'phone_type' => [], + #message templates + 'msg_template' => [], + ; \%hash; @@ -405,6 +413,7 @@ sub populate_access { use FS::AccessRight; use FS::access_right; + use FS::access_groupagent; foreach my $rightname ( FS::AccessRight->default_superuser_rights ) { my $access_right = new FS::access_right {