update validasi date terminated
This commit is contained in:
@@ -474,13 +474,15 @@ class MemberEnrollmentService
|
|||||||
]), 0, null, $row);
|
]), 0, null, $row);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (empty($row['date_terminated'])) {
|
// if (empty($row['date_terminated'])) {
|
||||||
throw new ImportRowException(__('enrollment.DATE_OF_TERMINATED'), 0, null, $row);
|
// throw new ImportRowException(__('enrollment.DATE_OF_TERMINATED'), 0, null, $row);
|
||||||
}
|
// }
|
||||||
if(!$this->validateDate($row['date_terminated'])){
|
if (!empty($row['date_terminated'])) {
|
||||||
throw new ImportRowException(__('enrollment.INVALID_DATE', [
|
if(!$this->validateDate($row['date_terminated'])){
|
||||||
'title' => $title['date_terminated']
|
throw new ImportRowException(__('enrollment.INVALID_DATE', [
|
||||||
]), 0, null, $row);
|
'title' => $title['date_terminated']
|
||||||
|
]), 0, null, $row);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// TODO DOB FORMAT VALIDATION
|
// TODO DOB FORMAT VALIDATION
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user