GWM : issue

This commit is contained in:
Gowtham M 2025-08-30 18:51:28 +05:30
parent 11c06278c4
commit 74545fbd11
2 changed files with 4 additions and 4 deletions

View File

@ -171,7 +171,7 @@ class MasterController extends ResourceController
if($groupData)
{
if($trip_type == 1) { $policyId = $groupData['domestic_policy_id'];}else{ $policyId = $groupData['international_policy_id'];}
// dd($policyId);
dd($policyId);
if($policyId != null)
{
$minFlightRow = $this->policyDetailsModel->where('policy_id', $policyId)->where('service_id', 1)->get()->getRow();

View File

@ -450,21 +450,21 @@ function getAllowedClassForUser($trip_type,$user_id)
->where('policy_id',$policyId)
->where('service_id',1)
->first();
$data['flight'] = $allowedFlightClass['allowed_class'];
$data['flight'] = $allowedFlightClass['allowed_class'] ?? [];
$allowedTrainClass = $policyDetailsModel->select('c_policy_details.class, m_dropdown.dropdown_value as allowed_class')
->join('m_dropdown', 'dropdown_key = c_policy_details.class AND dropdown = "train_class"', 'left')
->where('policy_id',$policyId)
->where('service_id',2)
->first();
$data['train'] = $allowedTrainClass['allowed_class'];
$data['train'] = $allowedTrainClass['allowed_class'] ?? [];
$allowedHotelClass = $policyDetailsModel->select('c_policy_details.class, m_dropdown.dropdown_value as allowed_class')
->join('m_dropdown', 'dropdown_key = c_policy_details.class AND dropdown = "hotel_class"', 'left')
->where('policy_id',$policyId)
->where('service_id',5)
->first();
$data['hotel'] = $allowedHotelClass['allowed_class'];
$data['hotel'] = $allowedHotelClass['allowed_class'] ?? [];
}