Fix Import Benefit selecting wrong plan from another corporate
This commit is contained in:
@@ -91,7 +91,9 @@ class CorporateService
|
|||||||
$this->validateBenefitRow($benefit_data);
|
$this->validateBenefitRow($benefit_data);
|
||||||
|
|
||||||
|
|
||||||
$plan = Plan::where('corporate_plan_id', $benefit_data['plan_code'])->first();
|
$plan = $corporate->plans()
|
||||||
|
->where('corporate_plan_id', $benefit_data['plan_code'])
|
||||||
|
->first();
|
||||||
|
|
||||||
// $corporate->plans->where('corporate_plan_id', $benefit_data['plan_code'])->first();
|
// $corporate->plans->where('corporate_plan_id', $benefit_data['plan_code'])->first();
|
||||||
$benefit_data['plan_code'] = $plan->id;
|
$benefit_data['plan_code'] = $plan->id;
|
||||||
|
|||||||
Reference in New Issue
Block a user