------------------ ### Features * Advanced Employee Management Module is now included in IceHrm Open Source Edition * LDAP Module which was only available in IceHrm Enterprise is now included in open source also * Initial implementation of icehrm REST Api for reading employee details * Improvements to data filtering * Multiple tabs for settings module * Overtime reports - now its possible to calculate overtime for employees.compatible with US overtime rules * Logout the user if tried accessing an unauthorized module * Setting for updating module names ### Fixes * Fix issue: classes should be loaded even the module is disabled * Deleting the only Admin user is not allowed * Fixes for handling non UTF-8 * Fix for non-mandatory select boxes are shown as mandatory
96 lines
2.2 KiB
PHP
96 lines
2.2 KiB
PHP
<?php
|
|
if (!class_exists('SalaryAdminManager')) {
|
|
class SalaryAdminManager extends AbstractModuleManager{
|
|
|
|
public function initializeUserClasses(){
|
|
|
|
}
|
|
|
|
public function initializeFieldMappings(){
|
|
|
|
}
|
|
|
|
public function initializeDatabaseErrorMappings(){
|
|
|
|
}
|
|
|
|
public function setupModuleClassDefinitions(){
|
|
$this->addModelClass('SalaryComponentType');
|
|
$this->addModelClass('SalaryComponent');
|
|
$this->addModelClass('Deduction');
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
if (!class_exists('SalaryComponentType')) {
|
|
class SalaryComponentType extends ICEHRM_Record {
|
|
var $_table = 'SalaryComponentType';
|
|
|
|
public function getAdminAccess(){
|
|
return array("get","element","save","delete");
|
|
}
|
|
|
|
public function getUserAccess(){
|
|
return array("get","element");
|
|
}
|
|
}
|
|
}
|
|
|
|
if (!class_exists('SalaryComponent')) {
|
|
class SalaryComponent extends ICEHRM_Record {
|
|
var $_table = 'SalaryComponent';
|
|
|
|
public function getAdminAccess(){
|
|
return array("get","element","save","delete");
|
|
}
|
|
|
|
public function getUserAccess(){
|
|
return array("get","element");
|
|
}
|
|
}
|
|
}
|
|
|
|
if (!class_exists('Deduction')) {
|
|
class Deduction extends ICEHRM_Record {
|
|
var $_table = 'Deductions';
|
|
|
|
public function getAdminAccess(){
|
|
return array("get","element","save","delete");
|
|
}
|
|
|
|
public function getUserAccess(){
|
|
return array("get","element");
|
|
}
|
|
}
|
|
}
|
|
|
|
if (!class_exists('DeductionGroup')) {
|
|
class DeductionGroup extends ICEHRM_Record {
|
|
var $_table = 'DeductionGroup';
|
|
|
|
public function getAdminAccess(){
|
|
return array("get","element","save","delete");
|
|
}
|
|
|
|
public function getUserAccess(){
|
|
return array("get","element");
|
|
}
|
|
}
|
|
}
|
|
|
|
if (!class_exists('PayrollEmployee')) {
|
|
class PayrollEmployee extends ICEHRM_Record {
|
|
var $_table = 'PayrollEmployees';
|
|
|
|
public function getAdminAccess(){
|
|
return array("get","element","save","delete");
|
|
}
|
|
|
|
public function getUserAccess(){
|
|
return array("get","element");
|
|
}
|
|
}
|
|
}
|
|
|