diff --git a/app/Controllers/EmployeeController.php b/app/Controllers/EmployeeController.php index f9d16f7a..db0468ae 100755 --- a/app/Controllers/EmployeeController.php +++ b/app/Controllers/EmployeeController.php @@ -445,6 +445,7 @@ class EmployeeController extends AdminController batch_files.amount, batch_files.status, batch_files.client_branch_id, + DATE_FORMAT(batch_files.policy_issue_date, '%d/%m/%Y') AS policy_issue_date, CASE WHEN batch_files.status IN ('partially success', 'in-progress-partially', 'failed-7') diff --git a/app/Views/batch_list.php b/app/Views/batch_list.php index aa2aa0da..9a461282 100755 --- a/app/Views/batch_list.php +++ b/app/Views/batch_list.php @@ -168,6 +168,7 @@ data-event_type="" data-actions="" data-client_branch_id="" + data-issue_date="" onclick="getBatchFileData(this)" class="dropdown-item upload_button" >Re-Upload @@ -215,6 +216,7 @@ + @@ -329,6 +331,7 @@ let insurer_or_tpa = $(input).data('insurer_or_tpa') let event_type = $(input).data('event_type') let actions = $(input).data('actions') + let issue_date = $(input).data('issue_date') console.log('client_id', client_id); console.log('client_policy_id', client_policy_id); @@ -336,6 +339,7 @@ console.log('insurer_or_tpa', insurer_or_tpa); console.log('event_type', event_type); console.log('actions', actions); + console.log('issue_date', issue_date); $('#batch_file_client_id').val(client_id); $('#batch_file_policy_id').val(client_policy_id); @@ -343,6 +347,7 @@ $('#batch_file_insurer_or_tpa').val(insurer_or_tpa); $('#batch_file_action_type').val(actions); $('#batch_file_event_type').val(event_type); + $('#batch_file_issue_date').val(issue_date); var myModal = new bootstrap.Modal(document.getElementById('batch_file_upload_modal'));