[WIP] Store Limit
This commit is contained in:
@@ -427,6 +427,7 @@ class MemberEnrollmentService
|
||||
// TODO validate corporate plan
|
||||
$plan = Plan::query()
|
||||
->where('code', $row['plan_id'])
|
||||
->where('corporate_id', $corporate->id)
|
||||
->first();
|
||||
if (!$plan) {
|
||||
throw new ImportRowException(__('enrollment.PLAN_NOT_FOUND'), 0, null, $row);
|
||||
@@ -461,7 +462,7 @@ class MemberEnrollmentService
|
||||
]);
|
||||
|
||||
$member->memberPlans()->create([
|
||||
'plan_id' => $plan->code,
|
||||
'plan_id' => $plan->id,
|
||||
'status' => 'active',
|
||||
'start' => Carbon::parse(strtotime($row['member_effective_date'])),
|
||||
'end' => Carbon::parse(strtotime($row['member_expiry_date'])),
|
||||
|
||||
Reference in New Issue
Block a user