changes to sms packages and option to create user
This commit is contained in:
@@ -19,54 +19,53 @@ public function run(): void
|
||||
{
|
||||
//
|
||||
$personTypes = [
|
||||
[ 'name' => 'legal', 'description' => ''],
|
||||
[ 'name' => 'natural', 'description' => '']
|
||||
['name' => 'legal', 'description' => ''],
|
||||
['name' => 'natural', 'description' => ''],
|
||||
];
|
||||
|
||||
$personGroups = [
|
||||
[ 'name' => 'naročnik', 'description' => '', 'color_tag' => 'blue-500'],
|
||||
[ 'name' => 'primer naročnika', 'description' => '', 'color_tag' => 'red-400']
|
||||
['name' => 'naročnik', 'description' => '', 'color_tag' => 'blue-500'],
|
||||
['name' => 'primer naročnika', 'description' => '', 'color_tag' => 'red-400'],
|
||||
];
|
||||
|
||||
$phoneTypes = [
|
||||
[ 'name' => 'mobile', 'description' => ''],
|
||||
[ 'name' => 'telephone', 'description' => '']
|
||||
['name' => 'mobile', 'description' => ''],
|
||||
['name' => 'telephone', 'description' => ''],
|
||||
];
|
||||
|
||||
$addressTypes = [
|
||||
[ 'name' => 'permanent', 'description' => ''],
|
||||
[ 'name' => 'temporary', 'description' => '']
|
||||
['name' => 'permanent', 'description' => ''],
|
||||
['name' => 'temporary', 'description' => ''],
|
||||
];
|
||||
|
||||
$contractTypes = [
|
||||
['name' => 'early', 'description' => ''],
|
||||
['name' => 'hard', 'description' => '']
|
||||
['name' => 'hard', 'description' => ''],
|
||||
];
|
||||
|
||||
|
||||
foreach($personTypes as $pt){
|
||||
foreach ($personTypes as $pt) {
|
||||
PersonType::create($pt);
|
||||
}
|
||||
|
||||
foreach($personGroups as $pg){
|
||||
foreach ($personGroups as $pg) {
|
||||
PersonGroup::create($pg);
|
||||
}
|
||||
|
||||
foreach($phoneTypes as $pt){
|
||||
foreach ($phoneTypes as $pt) {
|
||||
PhoneType::create($pt);
|
||||
}
|
||||
|
||||
foreach($addressTypes as $at){
|
||||
foreach ($addressTypes as $at) {
|
||||
AddressType::create($at);
|
||||
}
|
||||
|
||||
foreach($contractTypes as $ct){
|
||||
foreach ($contractTypes as $ct) {
|
||||
ContractType::create($ct);
|
||||
}
|
||||
|
||||
//client
|
||||
// client
|
||||
Person::create([
|
||||
'nu' => rand(100000,200000),
|
||||
'nu' => rand(100000, 200000),
|
||||
'first_name' => '',
|
||||
'last_name' => '',
|
||||
'full_name' => 'Naročnik d.o.o.',
|
||||
@@ -77,12 +76,12 @@ public function run(): void
|
||||
'description' => 'sdwwf',
|
||||
'group_id' => 1,
|
||||
'type_id' => 1,
|
||||
'user_id' => 1
|
||||
'user_id' => 1,
|
||||
])->client()->create();
|
||||
|
||||
//debtors
|
||||
|
||||
// debtors
|
||||
Person::create([
|
||||
'nu' => rand(100000,200000),
|
||||
'nu' => rand(100000, 200000),
|
||||
'first_name' => 'test',
|
||||
'last_name' => 'test',
|
||||
'full_name' => 'test test',
|
||||
@@ -93,13 +92,13 @@ public function run(): void
|
||||
'description' => 'sdwwf',
|
||||
'group_id' => 2,
|
||||
'type_id' => 2,
|
||||
'user_id' => 1
|
||||
'user_id' => 1,
|
||||
])->clientCase()->create([
|
||||
'client_id' => 1
|
||||
'client_id' => 1,
|
||||
]);
|
||||
|
||||
Person::create([
|
||||
'nu' => rand(100000,200000),
|
||||
'nu' => rand(100000, 200000),
|
||||
'first_name' => 'test2',
|
||||
'last_name' => 'test2',
|
||||
'full_name' => 'test2 test2',
|
||||
@@ -110,14 +109,14 @@ public function run(): void
|
||||
'description' => 'dw323',
|
||||
'group_id' => 2,
|
||||
'type_id' => 2,
|
||||
'user_id' => 1
|
||||
'user_id' => 1,
|
||||
])->clientCase()->create([
|
||||
'client_id' => 1
|
||||
'client_id' => 1,
|
||||
]);
|
||||
|
||||
//client
|
||||
// client
|
||||
Person::create([
|
||||
'nu' => rand(100000,200000),
|
||||
'nu' => rand(100000, 200000),
|
||||
'first_name' => '',
|
||||
'last_name' => '',
|
||||
'full_name' => 'test d.o.o.',
|
||||
@@ -128,12 +127,12 @@ public function run(): void
|
||||
'description' => 'sdwwf',
|
||||
'group_id' => 1,
|
||||
'type_id' => 1,
|
||||
'user_id' => 1
|
||||
'user_id' => 1,
|
||||
])->client()->create();
|
||||
|
||||
//debtors
|
||||
|
||||
// debtors
|
||||
Person::create([
|
||||
'nu' => rand(100000,200000),
|
||||
'nu' => rand(100000, 200000),
|
||||
'first_name' => 'test3',
|
||||
'last_name' => 'test3',
|
||||
'full_name' => 'test3 test3',
|
||||
@@ -144,15 +143,15 @@ public function run(): void
|
||||
'description' => 'sdwwf',
|
||||
'group_id' => 2,
|
||||
'type_id' => 2,
|
||||
'user_id' => 1
|
||||
'user_id' => 1,
|
||||
])->clientCase()->create(
|
||||
[
|
||||
'client_id' => 2
|
||||
'client_id' => 2,
|
||||
]
|
||||
);
|
||||
|
||||
Person::create([
|
||||
'nu' => rand(100000,200000),
|
||||
'nu' => rand(100000, 200000),
|
||||
'first_name' => '',
|
||||
'last_name' => '',
|
||||
'full_name' => 'test4 d.o.o.',
|
||||
@@ -163,12 +162,12 @@ public function run(): void
|
||||
'description' => 'dw323',
|
||||
'group_id' => 2,
|
||||
'type_id' => 1,
|
||||
'user_id' => 1
|
||||
'user_id' => 1,
|
||||
])->clientCase()->create(
|
||||
[
|
||||
'client_id' => 2
|
||||
'client_id' => 2,
|
||||
]
|
||||
);
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user