GWM : app config

This commit is contained in:
bitbucket 2024-08-13 16:51:29 +05:30
parent 5238af125a
commit e7cb64b1f8
2 changed files with 5 additions and 5 deletions

View File

@ -429,9 +429,9 @@ class Employeedetails extends BaseController
$data['BloodGroup'] = $this->employeedetails_model->getConfigValue($BloodGroupConfigID);
$data['Location'] = $this->employeedetails_model->getConfigValue($LocationConfigID);
$data['Department'] = $this->employeedetails_model->getDepartment();
$data['hra_rate'] = $this->appConfig->where('key',1)->get()->getRow()->value;
$data['pf_rate'] = $this->appConfig->where('key',2)->get()->getRow()->value;
$data['esi_rate'] = $this->appConfig->where('key',3)->get()->getRow()->value;
$data['hra_rate'] = $this->appConfig->where('config_key',1)->get()->getRow()->config_value;
$data['pf_rate'] = $this->appConfig->where('config_key',2)->get()->getRow()->config_value;
$data['esi_rate'] = $this->appConfig->where('config_key',3)->get()->getRow()->config_value;
$this->global['pageTitle'] = 'Add New Employee';
// if($this->role == ROLE_ADMIN || $this->DEPCode == HR)

View File

@ -11,9 +11,9 @@ class AppConfigModel extends Model
protected $primaryKey = 'id';
protected $allowedFields = [
"id",
"key",
"config_key",
"config",
"value",
"config_value",
"is_active",
"createdDate",
"uploadedby",