MERGE_UAT_BUG_FIXES

This commit is contained in:
Ubuntu 2026-07-29 10:00:35 +05:30
commit 09117c0b13
3 changed files with 15 additions and 15 deletions

View File

@ -112,12 +112,12 @@ class ClaimReportDashboardController extends BaseController
} }
$generatedAt = (new ClaimDumpFileModel())->getGeneratedAtForPolicy($policyId); $generatedAt = (new ClaimDumpFileModel())->getGeneratedAtForPolicy($policyId);
if ($generatedAt === null) { // if ($generatedAt === null) {
return $this->respond([ // return $this->respond([
'status' => false, // 'status' => false,
'message' => 'claim_dump_date is mandatory. No claim dump date found for this policy.', // 'message' => 'claim_dump_date is mandatory. No claim dump date found for this policy.',
], 422); // ], 422);
} // }
$model = new ClaimReportDashboardModel(); $model = new ClaimReportDashboardModel();
$data = $model->getAllKpis($policyId); $data = $model->getAllKpis($policyId);

View File

@ -111,12 +111,12 @@ class ClaimsCollectionV2DashboardController extends BaseController
} }
$generatedAt = (new ClaimDumpFileModel())->getGeneratedAtForPolicy($policyId); $generatedAt = (new ClaimDumpFileModel())->getGeneratedAtForPolicy($policyId);
if ($generatedAt === null) { // if ($generatedAt === null) {
return $this->respond([ // return $this->respond([
'status' => false, // 'status' => false,
'message' => 'claim_dump_date is mandatory. No claim dump date found for this policy.', // 'message' => 'claim_dump_date is mandatory. No claim dump date found for this policy.',
], 422); // ], 422);
} // }
$model = new ClaimsCollectionV2DashboardModel(); $model = new ClaimsCollectionV2DashboardModel();

View File

@ -4073,7 +4073,7 @@ class PolicyTransactionController extends BaseController
if ($date_type == 'statement_month' && $start_date && $end_date) { if ($date_type == 'statement_month' && $start_date && $end_date) {
$start_date = (string) date('Y-m-01', strtotime($start_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) { $normalize = static function ($value) {
@ -4367,7 +4367,7 @@ class PolicyTransactionController extends BaseController
$insurer_branch_id = $this->request->getGet('insurer_branch_id'); $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'); $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]); // dd([$start_date,$end_date]);
@ -6135,7 +6135,7 @@ class PolicyTransactionController extends BaseController
// Handle statement month range // Handle statement month range
if ($date_type == 'statement_month') { if ($date_type == 'statement_month') {
$start_date = (string) date('Y-m-01', strtotime($start_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));
} }
// Ensure default values // Ensure default values