mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Fixes for demo data
This commit is contained in:
parent
668e322834
commit
2191716115
@ -103,7 +103,7 @@ class DemoMode extends Command
|
|||||||
'enabled_modules' => 4095,
|
'enabled_modules' => 4095,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$settings = $company->settings;
|
$settings = $company->settings;
|
||||||
|
|
||||||
$settings->name = $faker->company;
|
$settings->name = $faker->company;
|
||||||
$settings->address1 = $faker->buildingNumber;
|
$settings->address1 = $faker->buildingNumber;
|
||||||
@ -112,11 +112,11 @@ class DemoMode extends Command
|
|||||||
$settings->state = $faker->state;
|
$settings->state = $faker->state;
|
||||||
$settings->postal_code = $faker->postcode;
|
$settings->postal_code = $faker->postcode;
|
||||||
$settings->website = $faker->url;
|
$settings->website = $faker->url;
|
||||||
$settings->vat_number = $faker->numberBetween(123456789, 987654321);
|
$settings->vat_number = (string)$faker->numberBetween(123456789, 987654321);
|
||||||
$settings->phone = $faker->phoneNumber;
|
$settings->phone = (string)$faker->phoneNumber;
|
||||||
|
|
||||||
$company->settings = $settings;
|
$company->settings = $settings;
|
||||||
$company->save();
|
$company->save();
|
||||||
|
|
||||||
$account->default_company_id = $company->id;
|
$account->default_company_id = $company->id;
|
||||||
$account->save();
|
$account->save();
|
||||||
|
@ -27,7 +27,7 @@ class CompanySettings extends BaseSettings
|
|||||||
public $auto_archive_invoice = false;
|
public $auto_archive_invoice = false;
|
||||||
public $lock_sent_invoices = false;
|
public $lock_sent_invoices = false;
|
||||||
|
|
||||||
//public $lock_invoices = 'off'; //off,when_sent,when_paid
|
public $lock_invoices = 'off'; //off,when_sent,when_paid
|
||||||
|
|
||||||
public $enable_client_portal_tasks = false;
|
public $enable_client_portal_tasks = false;
|
||||||
public $enable_client_portal_password = false;
|
public $enable_client_portal_password = false;
|
||||||
@ -238,7 +238,7 @@ class CompanySettings extends BaseSettings
|
|||||||
public $client_portal_privacy_policy = '';
|
public $client_portal_privacy_policy = '';
|
||||||
|
|
||||||
public static $casts = [
|
public static $casts = [
|
||||||
// 'lock_invoices' => 'string',
|
'lock_invoices' => 'string',
|
||||||
'client_portal_terms' => 'string',
|
'client_portal_terms' => 'string',
|
||||||
'client_portal_privacy_policy' => 'string',
|
'client_portal_privacy_policy' => 'string',
|
||||||
'client_can_register' => 'bool',
|
'client_can_register' => 'bool',
|
||||||
|
Loading…
Reference in New Issue
Block a user