FIX_CLAIM_LIST_VEH_NO_NOT_LIST_AND_CLAIM_DISCRIPTION_REMOVE_REQUIRED_BY_VENKATESH
This commit is contained in:
parent
61df713a4e
commit
38894bc929
@ -73,7 +73,7 @@ class ClaimController extends ResourceController
|
||||
tcs.claim_status as claim_status_value,
|
||||
pp.start_date as policy_start_date,
|
||||
pp.end_date as policy_end_date,
|
||||
v.vehicle_no as reg_no')
|
||||
pp.rc_no as reg_no')
|
||||
->join('insurers i', 'i.id = pc.insurer_id', 'left')
|
||||
->join('partner_claim_type_master pct', 'pct.id = pc.claim_type', 'left')
|
||||
->join('partner_agent pa', 'pa.id = pc.agent_id', 'left')
|
||||
@ -145,11 +145,11 @@ class ClaimController extends ResourceController
|
||||
try {
|
||||
$reqData = $this->request->getPost();
|
||||
|
||||
if (empty($reqData['policy_number']) || empty($reqData['claim_description']) || empty($reqData['claim_type'])) {
|
||||
if (empty($reqData['policy_number']) || empty($reqData['claim_type'])) {
|
||||
return $this->respond([
|
||||
'status' => 'failed',
|
||||
'code' => 400,
|
||||
'data' => 'policy_number, claim_description and claim_type are required',
|
||||
'data' => 'policy_number and claim_type are required',
|
||||
], 400);
|
||||
}
|
||||
|
||||
@ -188,7 +188,7 @@ class ClaimController extends ResourceController
|
||||
'claim_type' => $reqData['claim_type'],
|
||||
'date_of_incident' => format_date_for_database($reqData['date_of_incident'] ?? null),
|
||||
'place_of_incident' => $reqData['place_of_incident'] ?? null,
|
||||
'claim_description' => $reqData['claim_description'],
|
||||
'claim_description' => $reqData['claim_description'] ?? null,
|
||||
'spot_surveyor_name' => $reqData['spot_surveyor_name'] ?? null,
|
||||
'spot_surveyor_contact' => $reqData['spot_surveyor_contact'] ?? null,
|
||||
'workshop_surveyor_name' => $reqData['workshop_surveyor_name'] ?? null,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user