Apply Pagination

This commit is contained in:
2022-08-03 18:35:21 +07:00
parent f72a641f56
commit 4fb1723b76
12 changed files with 77 additions and 14 deletions

View File

@@ -167,7 +167,7 @@ class MemberEnrollmentService
"end_no_claim" => $row['end_no_claim'],
];
if ($corporate->currentPolicy->code != $row['policy_number']) {
if (!isset($corporate->currentPolicy) || $corporate->currentPolicy->code != $row['policy_number']) {
throw new ImportRowException(__('enrollment.POLICY_NUMBER_NOT_MATCH', [
'policy_id' => $row['policy_number']
]), 0, null, $row);
@@ -555,7 +555,7 @@ class MemberEnrollmentService
throw new ImportRowException(__("enrollment.MODE_UNAVAILABLE"), 0, null, $row);
}
} catch (\Exception $e) {
throw $e; //new ImportRowException($e->getMessage(), (int) $e->getCode(), $e, $row);
throw new ImportRowException($e->getMessage(), (int) $e->getCode(), $e, $row);
}
}