mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixes for demo data
This commit is contained in:
parent
668e322834
commit
2191716115
@ -112,8 +112,8 @@ 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();
|
||||||
|
@ -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…
x
Reference in New Issue
Block a user