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

View File

@@ -529,6 +529,7 @@ class MemberEnrollmentService
'start' => $member_effective_date 'start' => $member_effective_date
]), 0, null, $row); ]), 0, null, $row);
} }
if($date_terminated){
if ($date_terminated <= $member_effective_date && ($date_terminated != $member_effective_date)) { if ($date_terminated <= $member_effective_date && ($date_terminated != $member_effective_date)) {
throw new ImportRowException(__('enrollment.MORE_THAN', [ throw new ImportRowException(__('enrollment.MORE_THAN', [
'date_param' => 'Date Terminated Date', 'date_param' => 'Date Terminated Date',
@@ -537,6 +538,7 @@ class MemberEnrollmentService
'start' => $member_effective_date 'start' => $member_effective_date
]), 0, null, $row); ]), 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', [
'date_param' => 'Activation Date', 'date_param' => 'Activation Date',