Fix CreateOrUpdate Benefit
This commit is contained in:
@@ -42,6 +42,7 @@ class CorporateService
|
|||||||
$this->validatePlanRow($plan_data);
|
$this->validatePlanRow($plan_data);
|
||||||
|
|
||||||
$plan = Plan::updateOrCreate([
|
$plan = Plan::updateOrCreate([
|
||||||
|
'service_code' => $plan_data['service_code'],
|
||||||
'corporate_id' => $corporate->id,
|
'corporate_id' => $corporate->id,
|
||||||
'code' => $plan_data['code'],
|
'code' => $plan_data['code'],
|
||||||
], $plan_data);
|
], $plan_data);
|
||||||
@@ -89,6 +90,7 @@ class CorporateService
|
|||||||
$this->validateBenefitRow($benefit_data);
|
$this->validateBenefitRow($benefit_data);
|
||||||
|
|
||||||
$plan = Benefit::updateOrCreate([
|
$plan = Benefit::updateOrCreate([
|
||||||
|
'service_code' => $benefit_data['service_code'],
|
||||||
'corporate_id' => $corporate->id,
|
'corporate_id' => $corporate->id,
|
||||||
'code' => $benefit_data['code'],
|
'code' => $benefit_data['code'],
|
||||||
], $benefit_data);
|
], $benefit_data);
|
||||||
|
|||||||
Reference in New Issue
Block a user