mirror of
https://github.com/Karaka-Management/oms-HumanResourceManagement.git
synced 2026-02-02 22:28:40 +00:00
Test fixes
This commit is contained in:
parent
dfb60a76a8
commit
072ec0e9bf
|
|
@ -330,13 +330,13 @@
|
||||||
"unique": true
|
"unique": true
|
||||||
},
|
},
|
||||||
"hr_salary_type_salary": {
|
"hr_salary_type_salary": {
|
||||||
"description": "Not all salary types are considered salary by the employee",
|
"comment": "Not all salary types are considered salary by the employee",
|
||||||
"name": "hr_salary_type_salary",
|
"name": "hr_salary_type_salary",
|
||||||
"type": "TINYINT(1)",
|
"type": "TINYINT(1)",
|
||||||
"null": false
|
"null": false
|
||||||
},
|
},
|
||||||
"hr_salary_type_regular": {
|
"hr_salary_type_regular": {
|
||||||
"description": "Not all salary types are regular payments. Can be overwritten by salary",
|
"comment": "Not all salary types are regular payments. Can be overwritten by salary",
|
||||||
"name": "hr_salary_type_regular",
|
"name": "hr_salary_type_regular",
|
||||||
"type": "TINYINT(1)",
|
"type": "TINYINT(1)",
|
||||||
"null": false
|
"null": false
|
||||||
|
|
|
||||||
|
|
@ -429,8 +429,10 @@ final class ApiController extends Controller
|
||||||
$history->educationTitle = $request->getDataString('title') ?? '';
|
$history->educationTitle = $request->getDataString('title') ?? '';
|
||||||
$history->passed = $request->getDataBool('passed') ?? true;
|
$history->passed = $request->getDataBool('passed') ?? true;
|
||||||
|
|
||||||
$history->score = !empty($request->getDataString('score') ?? '') && !empty($_SERVER['OMS_PRIVATE_KEY_I'] ?? '')
|
$history->score = !empty($request->getDataString('score') ?? '')
|
||||||
? (EncryptionHelper::encryptShared($request->getDataString('score') ?? '', $_SERVER['OMS_PRIVATE_KEY_I']))
|
&& isset($_SERVER['OMS_PRIVATE_KEY_I'])
|
||||||
|
&& !empty($_SERVER['OMS_PRIVATE_KEY_I'])
|
||||||
|
? (EncryptionHelper::encryptShared($request->getDataString('score'), $_SERVER['OMS_PRIVATE_KEY_I']))
|
||||||
: ($request->getDataString('score') ?? '');
|
: ($request->getDataString('score') ?? '');
|
||||||
|
|
||||||
$history->address = $this->app->moduleManager->get('Admin', 'Api')->createAddressFromRequest($request);
|
$history->address = $this->app->moduleManager->get('Admin', 'Api')->createAddressFromRequest($request);
|
||||||
|
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
# Structure
|
|
||||||
|
|
||||||
## ER
|
|
||||||
|
|
||||||

|
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 242 KiB |
|
|
@ -14,8 +14,6 @@ declare(strict_types=1);
|
||||||
|
|
||||||
namespace Modules\HumanResourceManagement\Models;
|
namespace Modules\HumanResourceManagement\Models;
|
||||||
|
|
||||||
use Modules\Media\Models\Media;
|
|
||||||
use Modules\Media\Models\NullMedia;
|
|
||||||
use phpOMS\Stdlib\Base\Address;
|
use phpOMS\Stdlib\Base\Address;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -14,8 +14,6 @@ declare(strict_types=1);
|
||||||
|
|
||||||
namespace Modules\HumanResourceManagement\Models;
|
namespace Modules\HumanResourceManagement\Models;
|
||||||
|
|
||||||
use Modules\Media\Models\Media;
|
|
||||||
use Modules\Media\Models\NullMedia;
|
|
||||||
use Modules\Organization\Models\Department;
|
use Modules\Organization\Models\Department;
|
||||||
use Modules\Organization\Models\NullDepartment;
|
use Modules\Organization\Models\NullDepartment;
|
||||||
use Modules\Organization\Models\NullPosition;
|
use Modules\Organization\Models\NullPosition;
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@ final class EmployeeMapper extends DataMapperFactory
|
||||||
*/
|
*/
|
||||||
public const COLUMNS = [
|
public const COLUMNS = [
|
||||||
'hr_staff_id' => ['name' => 'hr_staff_id', 'type' => 'int', 'internal' => 'id'],
|
'hr_staff_id' => ['name' => 'hr_staff_id', 'type' => 'int', 'internal' => 'id'],
|
||||||
'hr_staff_status' => ['name' => 'hr_staff_status', 'type' => 'int', 'internal' => 'status'],
|
'hr_staff_status' => ['name' => 'hr_staff_status', 'type' => 'int', 'internal' => 'status'],
|
||||||
'hr_staff_profile' => ['name' => 'hr_staff_profile', 'type' => 'int', 'internal' => 'profile'],
|
'hr_staff_profile' => ['name' => 'hr_staff_profile', 'type' => 'int', 'internal' => 'profile'],
|
||||||
'hr_staff_smiPHash' => ['name' => 'hr_staff_smiPHash', 'type' => 'string', 'internal' => 'semiPrivateHash', 'private' => true],
|
'hr_staff_smiPHash' => ['name' => 'hr_staff_smiPHash', 'type' => 'string', 'internal' => 'semiPrivateHash', 'private' => true],
|
||||||
'hr_staff_image' => ['name' => 'hr_staff_image', 'type' => 'int', 'internal' => 'image', 'annotations' => ['gdpr' => true]],
|
'hr_staff_image' => ['name' => 'hr_staff_image', 'type' => 'int', 'internal' => 'image', 'annotations' => ['gdpr' => true]],
|
||||||
|
|
|
||||||
|
|
@ -14,8 +14,6 @@ declare(strict_types=1);
|
||||||
|
|
||||||
namespace Modules\HumanResourceManagement\Models;
|
namespace Modules\HumanResourceManagement\Models;
|
||||||
|
|
||||||
use Modules\Media\Models\Media;
|
|
||||||
use Modules\Media\Models\NullMedia;
|
|
||||||
use phpOMS\Stdlib\Base\Address;
|
use phpOMS\Stdlib\Base\Address;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -46,9 +46,9 @@ return ['HumanResourceManagement' => [
|
||||||
'Title' => 'Titel',
|
'Title' => 'Titel',
|
||||||
'Unit' => 'Einheit',
|
'Unit' => 'Einheit',
|
||||||
'Work' => 'Arbeiten',
|
'Work' => 'Arbeiten',
|
||||||
'Total' => 'Gesamt',
|
'Total' => 'Gesamt',
|
||||||
'FTE' => 'MAK',
|
'FTE' => 'MAK',
|
||||||
':status-1' => 'Aktiv',
|
':status-1' => 'Aktiv',
|
||||||
':status-2' => 'Inaktiv',
|
':status-2' => 'Inaktiv',
|
||||||
':status-3' => 'Nicht Verfügbar',
|
':status-3' => 'Nicht Verfügbar',
|
||||||
]];
|
]];
|
||||||
|
|
|
||||||
|
|
@ -46,9 +46,9 @@ return ['HumanResourceManagement' => [
|
||||||
'Title' => 'Title',
|
'Title' => 'Title',
|
||||||
'Unit' => 'Unit',
|
'Unit' => 'Unit',
|
||||||
'Work' => 'Work',
|
'Work' => 'Work',
|
||||||
'Total' => 'Total',
|
'Total' => 'Total',
|
||||||
'FTE' => 'FTE',
|
'FTE' => 'FTE',
|
||||||
':status-1' => 'Active',
|
':status-1' => 'Active',
|
||||||
':status-2' => 'Inactive',
|
':status-2' => 'Inactive',
|
||||||
':status-3' => 'Unavailable',
|
':status-3' => 'Unavailable',
|
||||||
]];
|
]];
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@
|
||||||
},
|
},
|
||||||
"creator": {
|
"creator": {
|
||||||
"name": "Jingga",
|
"name": "Jingga",
|
||||||
"website": "jingga.app"
|
"website": "https://jingga.app"
|
||||||
},
|
},
|
||||||
"description": "Human Resources module.",
|
"description": "Human Resources module.",
|
||||||
"directory": "HumanResourceManagement",
|
"directory": "HumanResourceManagement",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user