Fix code style issues
This commit is contained in:
@@ -285,8 +285,8 @@ class BaseService
|
|||||||
|
|
||||||
$childCompaniesIds = array();
|
$childCompaniesIds = array();
|
||||||
if (\Classes\SettingsManager::getInstance()->getSetting(
|
if (\Classes\SettingsManager::getInstance()->getSetting(
|
||||||
'System: Child Company Structure Managers Enabled'
|
'System: Child Company Structure Managers Enabled'
|
||||||
) == '1'
|
) == '1'
|
||||||
) {
|
) {
|
||||||
$childCompaniesResp = \Company\Common\Model\CompanyStructure::getAllChildCompanyStructures(
|
$childCompaniesResp = \Company\Common\Model\CompanyStructure::getAllChildCompanyStructures(
|
||||||
$cempObj->department
|
$cempObj->department
|
||||||
@@ -479,8 +479,8 @@ class BaseService
|
|||||||
|
|
||||||
$childCompaniesIds = array();
|
$childCompaniesIds = array();
|
||||||
if (SettingsManager::getInstance()->getSetting(
|
if (SettingsManager::getInstance()->getSetting(
|
||||||
'System: Child Company Structure Managers Enabled'
|
'System: Child Company Structure Managers Enabled'
|
||||||
) == '1'
|
) == '1'
|
||||||
) {
|
) {
|
||||||
$childCompaniesResp = CompanyStructure::getAllChildCompanyStructures($cempObj->department);
|
$childCompaniesResp = CompanyStructure::getAllChildCompanyStructures($cempObj->department);
|
||||||
$childCompanies = $childCompaniesResp->getObject();
|
$childCompanies = $childCompaniesResp->getObject();
|
||||||
@@ -560,8 +560,8 @@ class BaseService
|
|||||||
|
|
||||||
$childCompaniesIds = array();
|
$childCompaniesIds = array();
|
||||||
if (SettingsManager::getInstance()->getSetting(
|
if (SettingsManager::getInstance()->getSetting(
|
||||||
'System: Child Company Structure Managers Enabled'
|
'System: Child Company Structure Managers Enabled'
|
||||||
) == '1'
|
) == '1'
|
||||||
) {
|
) {
|
||||||
$childCompaniesResp = CompanyStructure::getAllChildCompanyStructures($cempObj->department);
|
$childCompaniesResp = CompanyStructure::getAllChildCompanyStructures($cempObj->department);
|
||||||
$childCompanies = $childCompaniesResp->getObject();
|
$childCompanies = $childCompaniesResp->getObject();
|
||||||
@@ -1781,8 +1781,8 @@ END;
|
|||||||
) {
|
) {
|
||||||
$departmentHeadFound = true;
|
$departmentHeadFound = true;
|
||||||
} elseif (SettingsManager::getInstance()->getSetting(
|
} elseif (SettingsManager::getInstance()->getSetting(
|
||||||
'System: Child Company Structure Managers Enabled'
|
'System: Child Company Structure Managers Enabled'
|
||||||
) == '1'
|
) == '1'
|
||||||
) {
|
) {
|
||||||
$companyStructure = new CompanyStructure();
|
$companyStructure = new CompanyStructure();
|
||||||
$companyStructure->Load('id = ?', array($subordinate->department));
|
$companyStructure->Load('id = ?', array($subordinate->department));
|
||||||
|
|||||||
Reference in New Issue
Block a user