mirror of
https://github.com/Karaka-Management/oms-HumanResourceManagement.git
synced 2026-01-11 04:18:41 +00:00
Test fixes
This commit is contained in:
parent
dfb60a76a8
commit
072ec0e9bf
|
|
@ -330,13 +330,13 @@
|
|||
"unique": true
|
||||
},
|
||||
"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",
|
||||
"type": "TINYINT(1)",
|
||||
"null": false
|
||||
},
|
||||
"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",
|
||||
"type": "TINYINT(1)",
|
||||
"null": false
|
||||
|
|
|
|||
|
|
@ -429,8 +429,10 @@ final class ApiController extends Controller
|
|||
$history->educationTitle = $request->getDataString('title') ?? '';
|
||||
$history->passed = $request->getDataBool('passed') ?? true;
|
||||
|
||||
$history->score = !empty($request->getDataString('score') ?? '') && !empty($_SERVER['OMS_PRIVATE_KEY_I'] ?? '')
|
||||
? (EncryptionHelper::encryptShared($request->getDataString('score') ?? '', $_SERVER['OMS_PRIVATE_KEY_I']))
|
||||
$history->score = !empty($request->getDataString('score') ?? '')
|
||||
&& 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') ?? '');
|
||||
|
||||
$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;
|
||||
|
||||
use Modules\Media\Models\Media;
|
||||
use Modules\Media\Models\NullMedia;
|
||||
use phpOMS\Stdlib\Base\Address;
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -14,8 +14,6 @@ declare(strict_types=1);
|
|||
|
||||
namespace Modules\HumanResourceManagement\Models;
|
||||
|
||||
use Modules\Media\Models\Media;
|
||||
use Modules\Media\Models\NullMedia;
|
||||
use Modules\Organization\Models\Department;
|
||||
use Modules\Organization\Models\NullDepartment;
|
||||
use Modules\Organization\Models\NullPosition;
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ final class EmployeeMapper extends DataMapperFactory
|
|||
*/
|
||||
public const COLUMNS = [
|
||||
'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_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]],
|
||||
|
|
|
|||
|
|
@ -14,8 +14,6 @@ declare(strict_types=1);
|
|||
|
||||
namespace Modules\HumanResourceManagement\Models;
|
||||
|
||||
use Modules\Media\Models\Media;
|
||||
use Modules\Media\Models\NullMedia;
|
||||
use phpOMS\Stdlib\Base\Address;
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -46,9 +46,9 @@ return ['HumanResourceManagement' => [
|
|||
'Title' => 'Titel',
|
||||
'Unit' => 'Einheit',
|
||||
'Work' => 'Arbeiten',
|
||||
'Total' => 'Gesamt',
|
||||
'FTE' => 'MAK',
|
||||
':status-1' => 'Aktiv',
|
||||
':status-2' => 'Inaktiv',
|
||||
':status-3' => 'Nicht Verfügbar',
|
||||
'Total' => 'Gesamt',
|
||||
'FTE' => 'MAK',
|
||||
':status-1' => 'Aktiv',
|
||||
':status-2' => 'Inaktiv',
|
||||
':status-3' => 'Nicht Verfügbar',
|
||||
]];
|
||||
|
|
|
|||
|
|
@ -46,9 +46,9 @@ return ['HumanResourceManagement' => [
|
|||
'Title' => 'Title',
|
||||
'Unit' => 'Unit',
|
||||
'Work' => 'Work',
|
||||
'Total' => 'Total',
|
||||
'FTE' => 'FTE',
|
||||
':status-1' => 'Active',
|
||||
':status-2' => 'Inactive',
|
||||
':status-3' => 'Unavailable',
|
||||
'Total' => 'Total',
|
||||
'FTE' => 'FTE',
|
||||
':status-1' => 'Active',
|
||||
':status-2' => 'Inactive',
|
||||
':status-3' => 'Unavailable',
|
||||
]];
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user