MERGE_UAT_BUG_FIXES
This commit is contained in:
commit
09117c0b13
@ -112,12 +112,12 @@ class ClaimReportDashboardController extends BaseController
|
||||
}
|
||||
|
||||
$generatedAt = (new ClaimDumpFileModel())->getGeneratedAtForPolicy($policyId);
|
||||
if ($generatedAt === null) {
|
||||
return $this->respond([
|
||||
'status' => false,
|
||||
'message' => 'claim_dump_date is mandatory. No claim dump date found for this policy.',
|
||||
], 422);
|
||||
}
|
||||
// if ($generatedAt === null) {
|
||||
// return $this->respond([
|
||||
// 'status' => false,
|
||||
// 'message' => 'claim_dump_date is mandatory. No claim dump date found for this policy.',
|
||||
// ], 422);
|
||||
// }
|
||||
|
||||
$model = new ClaimReportDashboardModel();
|
||||
$data = $model->getAllKpis($policyId);
|
||||
|
||||
@ -111,12 +111,12 @@ class ClaimsCollectionV2DashboardController extends BaseController
|
||||
}
|
||||
|
||||
$generatedAt = (new ClaimDumpFileModel())->getGeneratedAtForPolicy($policyId);
|
||||
if ($generatedAt === null) {
|
||||
return $this->respond([
|
||||
'status' => false,
|
||||
'message' => 'claim_dump_date is mandatory. No claim dump date found for this policy.',
|
||||
], 422);
|
||||
}
|
||||
// if ($generatedAt === null) {
|
||||
// return $this->respond([
|
||||
// 'status' => false,
|
||||
// 'message' => 'claim_dump_date is mandatory. No claim dump date found for this policy.',
|
||||
// ], 422);
|
||||
// }
|
||||
|
||||
$model = new ClaimsCollectionV2DashboardModel();
|
||||
|
||||
|
||||
@ -4073,7 +4073,7 @@ class PolicyTransactionController extends BaseController
|
||||
|
||||
if ($date_type == 'statement_month' && $start_date && $end_date) {
|
||||
$start_date = (string) date('Y-m-01', strtotime($start_date));
|
||||
$end_date = (string) date('Y-m-31', strtotime($end_date));
|
||||
$end_date = (string) date('Y-m-t', strtotime($end_date));
|
||||
}
|
||||
|
||||
$normalize = static function ($value) {
|
||||
@ -4367,7 +4367,7 @@ class PolicyTransactionController extends BaseController
|
||||
$insurer_branch_id = $this->request->getGet('insurer_branch_id');
|
||||
|
||||
$start_date = (!isset($start_date) || $start_date === '' || $start_date === null) ? 0 : change_date_format($start_date, 'd-m-Y', 'Y-m-01');
|
||||
$end_date = (!isset($end_date) || $end_date === '' || $end_date === null) ? 0 : change_date_format($end_date, 'd-m-Y', 'Y-m-31');
|
||||
$end_date = (!isset($end_date) || $end_date === '' || $end_date === null) ? 0 : change_date_format($end_date, 'd-m-Y', 'Y-m-t');
|
||||
// dd([$start_date,$end_date]);
|
||||
|
||||
|
||||
@ -6135,7 +6135,7 @@ class PolicyTransactionController extends BaseController
|
||||
// Handle statement month range
|
||||
if ($date_type == 'statement_month') {
|
||||
$start_date = (string) date('Y-m-01', strtotime($start_date));
|
||||
$end_date = (string) date('Y-m-31', strtotime($end_date));
|
||||
$end_date = (string) date('Y-m-t', strtotime($end_date));
|
||||
}
|
||||
|
||||
// Ensure default values
|
||||
|
||||
Loading…
Reference in New Issue
Block a user