FIX_ISSUE
This commit is contained in:
parent
44b8e2164e
commit
491788189b
@ -17,6 +17,7 @@ class Acl
|
|||||||
'#^/getVerifiedPosUserData#' => ['public' => true],
|
'#^/getVerifiedPosUserData#' => ['public' => true],
|
||||||
'#^/swagger#' => ['roles' => [ADMIN_ROLE_ID]],
|
'#^/swagger#' => ['roles' => [ADMIN_ROLE_ID]],
|
||||||
'#^/getEmployeeActiveOrInactivePolicy#' => ['roles' => [ADMIN_ROLE_ID, HEAD_ROLE_ID]],
|
'#^/getEmployeeActiveOrInactivePolicy#' => ['roles' => [ADMIN_ROLE_ID, HEAD_ROLE_ID]],
|
||||||
|
'#^/sendextraparam#' => ['roles' => [ADMIN_ROLE_ID, HEAD_ROLE_ID]],
|
||||||
'#^/test/testingquerys#' => ['roles' => [ADMIN_ROLE_ID, HEAD_ROLE_ID]],
|
'#^/test/testingquerys#' => ['roles' => [ADMIN_ROLE_ID, HEAD_ROLE_ID]],
|
||||||
'#^/test/viewrfq#' => ['roles' => [ADMIN_ROLE_ID, HEAD_ROLE_ID]],
|
'#^/test/viewrfq#' => ['roles' => [ADMIN_ROLE_ID, HEAD_ROLE_ID]],
|
||||||
'#^/fedeploy#' => ['roles' => [ADMIN_ROLE_ID]],
|
'#^/fedeploy#' => ['roles' => [ADMIN_ROLE_ID]],
|
||||||
|
|||||||
@ -6991,6 +6991,7 @@ class ClientController extends AdminController
|
|||||||
// $res = $policyTransactionController->validateInsurerStatement(['file_id' => '281']);
|
// $res = $policyTransactionController->validateInsurerStatement(['file_id' => '281']);
|
||||||
// $res = $policyTransactionController->updateInsurerStatement(['file_id' => '62']);
|
// $res = $policyTransactionController->updateInsurerStatement(['file_id' => '62']);
|
||||||
// $res = $policyTransactionController->bdsDumpExcelFileFormatValidation(['file_id' => '73']);
|
// $res = $policyTransactionController->bdsDumpExcelFileFormatValidation(['file_id' => '73']);
|
||||||
|
// $res = $policyTransactionController->insertBulkBdsData(['file_id' => '78']);
|
||||||
// dd($res);
|
// dd($res);
|
||||||
|
|
||||||
// ----------EMP DATA SERVICE CONTROLLER--------------------------------------------------------------------------------
|
// ----------EMP DATA SERVICE CONTROLLER--------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -5711,6 +5711,7 @@ class PolicyTransactionController extends BaseController
|
|||||||
// 'agent_code' => $current_agent_data['agent_code'] ?? null,
|
// 'agent_code' => $current_agent_data['agent_code'] ?? null,
|
||||||
'pos_id' => $current_agent_data['id'] ?? null,
|
'pos_id' => $current_agent_data['id'] ?? null,
|
||||||
'file_id' => $params['file_id'],
|
'file_id' => $params['file_id'],
|
||||||
|
'created_by' => $file['created_by'] ?? null,
|
||||||
'endorsement_no' => null,
|
'endorsement_no' => null,
|
||||||
'client_branch_id' => null,
|
'client_branch_id' => null,
|
||||||
'client_policy_id' => null,
|
'client_policy_id' => null,
|
||||||
@ -5785,7 +5786,8 @@ class PolicyTransactionController extends BaseController
|
|||||||
|
|
||||||
'pt_policy_issue_date' => change_date_format($policy_issue_date, 'd/M/Y', 'Y-m-d'),
|
'pt_policy_issue_date' => change_date_format($policy_issue_date, 'd/M/Y', 'Y-m-d'),
|
||||||
|
|
||||||
'file_id' => $params['file_id']
|
'file_id' => $params['file_id'],
|
||||||
|
'created_by' => $file['created_by'] ?? null,
|
||||||
];
|
];
|
||||||
|
|
||||||
if(!empty($vehicle_id) && !empty($client_id)){
|
if(!empty($vehicle_id) && !empty($client_id)){
|
||||||
@ -6027,12 +6029,14 @@ class PolicyTransactionController extends BaseController
|
|||||||
|
|
||||||
if (empty($vehicle_id) && empty($client_id)) {
|
if (empty($vehicle_id) && empty($client_id)) {
|
||||||
|
|
||||||
|
if(strtolower(trim($vehicle_number)) != 'new'){
|
||||||
foreach ($client_data as $c) {
|
foreach ($client_data as $c) {
|
||||||
if (strcasecmp(trim($c['email']), $client_email) === 0) {
|
if (strcasecmp(trim($c['email']), $client_email) === 0) {
|
||||||
$second_stage_client_id = $c['id'];
|
$second_stage_client_id = $c['id'];
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!empty($second_stage_client_id)) {
|
if (!empty($second_stage_client_id)) {
|
||||||
|
|
||||||
@ -6087,4 +6091,15 @@ class PolicyTransactionController extends BaseController
|
|||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function truncateBdsBulkUploadData()
|
||||||
|
{
|
||||||
|
$file_id = $this->request->getGet('file_id') ?? null;
|
||||||
|
if (empty($file_id)) {
|
||||||
|
return array('status' => false, 'message' => 'file_id is required');
|
||||||
|
}
|
||||||
|
|
||||||
|
$this->policyTransactionModel->select()->findAll();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -30,7 +30,7 @@ class GlobalPostFileUploadGuard implements FilterInterface
|
|||||||
'application/vnd.oasis.opendocument.text' => ['odt'],
|
'application/vnd.oasis.opendocument.text' => ['odt'],
|
||||||
'text/rtf' => ['rtf'],
|
'text/rtf' => ['rtf'],
|
||||||
'application/rtf' => ['rtf'],
|
'application/rtf' => ['rtf'],
|
||||||
'application/vnd.ms-excel' => ['xls'],
|
'application/vnd.ms-excel' => ['xls', 'xlsx'],
|
||||||
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' => ['xlsx'],
|
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' => ['xlsx'],
|
||||||
'application/vnd.oasis.opendocument.spreadsheet' => ['ods'],
|
'application/vnd.oasis.opendocument.spreadsheet' => ['ods'],
|
||||||
'text/csv' => ['csv'],
|
'text/csv' => ['csv'],
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user