This commit is contained in:
2023-05-15 14:25:56 +07:00
parent 02e84b262f
commit ca9ebdb3a1

View File

@@ -529,13 +529,15 @@ class MemberEnrollmentService
'start' => $member_effective_date 'start' => $member_effective_date
]), 0, null, $row); ]), 0, null, $row);
} }
if ($date_terminated <= $member_effective_date && ($date_terminated != $member_effective_date)) { if($date_terminated){
throw new ImportRowException(__('enrollment.MORE_THAN', [ if ($date_terminated <= $member_effective_date && ($date_terminated != $member_effective_date)) {
'date_param' => 'Date Terminated Date', throw new ImportRowException(__('enrollment.MORE_THAN', [
'date' => $date_terminated, 'date_param' => 'Date Terminated Date',
'date_param2' => 'Member Effective Date', 'date' => $date_terminated,
'start' => $member_effective_date 'date_param2' => 'Member Effective Date',
]), 0, null, $row); 'start' => $member_effective_date
]), 0, null, $row);
}
} }
if (($activation_date == $date_terminated) && ($activation_date == $member_effective_date)) { if (($activation_date == $date_terminated) && ($activation_date == $member_effective_date)) {
throw new ImportRowException(__('enrollment.MORE_THAN', [ throw new ImportRowException(__('enrollment.MORE_THAN', [