Merge branch 'dev' of bitbucket.org:jubilian/nhance into dev

This commit is contained in:
VENKATESHWARAN 2025-11-10 14:15:03 +05:30
commit f7d4930fd0
4 changed files with 26 additions and 21 deletions

View File

@ -24,13 +24,14 @@ class MediAssistApiController extends BaseController
helper('api'); helper('api');
$url = ''. getenv('MEDI_ASSIST_API_BASE_URL_DEV').'/SubmitClaim'; // $url = ''. getenv('MEDI_ASSIST_API_BASE_URL').'/SubmitClaim';
$url = getenv('MEDI_ASSIST_API_BASE_URL_CLAIMSUBMIT');
$method = 'POST'; $method = 'POST';
$headers = [ $headers = [
'Content-Type: application/json', 'Content-Type: application/json',
'Username:'. getenv('MEDI_ASSIST_API_USERNAME_DEV').'', 'Username:'. getenv('MEDI_ASSIST_API_USERNAME').'',
'Password:'. getenv('MEDI_ASSIST_API_PASSWORD_DEV').'', 'Password:'. getenv('MEDI_ASSIST_API_PASSWORD').'',
]; ];
@ -159,13 +160,14 @@ class MediAssistApiController extends BaseController
helper('api'); helper('api');
$url = ''. getenv('MEDI_ASSIST_API_BASE_URL_LIVE').'/EcardUrl'; // $url = ''. getenv('MEDI_ASSIST_API_BASE_URL').'/EcardUrl';
$url = getenv('MEDI_ASSIST_API_BASE_URL_ECARDREQUEST');
$method = 'POST'; $method = 'POST';
$headers = [ $headers = [
'Content-Type: application/json', 'Content-Type: application/json',
'Username:'. getenv('MEDI_ASSIST_API_USERNAME_LIVE').'', 'Username:'. getenv('MEDI_ASSIST_API_USERNAME').'',
'Password:'. getenv('MEDI_ASSIST_API_PASSWORD_LIVE').'', 'Password:'. getenv('MEDI_ASSIST_API_PASSWORD').'',
]; ];
$body = [ $body = [
@ -207,13 +209,14 @@ class MediAssistApiController extends BaseController
try { try {
$url = getenv('MEDI_ASSIST_API_BASE_URL_LIVE') . '/GetBenefDetails'; // $url = getenv('MEDI_ASSIST_API_BASE_URL') . '/GetBenefDetails';
$url = getenv('MEDI_ASSIST_API_BASE_URL_FETCHTPA');
$method = 'POST'; $method = 'POST';
$headers = [ $headers = [
'Content-Type: application/json', 'Content-Type: application/json',
'Username:' . getenv('MEDI_ASSIST_API_USERNAME_LIVE'), 'Username:' . getenv('MEDI_ASSIST_API_USERNAME'),
'Password:' . getenv('MEDI_ASSIST_API_PASSWORD_LIVE'), 'Password:' . getenv('MEDI_ASSIST_API_PASSWORD'),
]; ];
$policyNo = $requestData['policy_no'] ?? null; $policyNo = $requestData['policy_no'] ?? null;
@ -447,13 +450,13 @@ class MediAssistApiController extends BaseController
// helper('api'); // helper('api');
// $url = ''. getenv('MEDI_ASSIST_API_BASE_URL_LIVE').'/GetBenefDetails'; // $url = ''. getenv('MEDI_ASSIST_API_BASE_URL').'/GetBenefDetails';
// $method = 'POST'; // $method = 'POST';
// $headers = [ // $headers = [
// 'Content-Type: application/json', // 'Content-Type: application/json',
// 'Username:'. getenv('MEDI_ASSIST_API_USERNAME_LIVE').'', // 'Username:'. getenv('MEDI_ASSIST_API_USERNAME').'',
// 'Password:'. getenv('MEDI_ASSIST_API_PASSWORD_LIVE').'', // 'Password:'. getenv('MEDI_ASSIST_API_PASSWORD').'',
// ]; // ];
// $body = [ // $body = [
@ -496,13 +499,13 @@ class MediAssistApiController extends BaseController
helper('api'); helper('api');
$url = ''. getenv('MEDI_ASSIST_API_BASE_URL_LIVE').'/ClaimDetail'; $url = ''. getenv('MEDI_ASSIST_API_BASE_URL').'/ClaimDetail';
$method = 'POST'; $method = 'POST';
$headers = [ $headers = [
'Content-Type: application/json', 'Content-Type: application/json',
'Username:'. getenv('MEDI_ASSIST_API_USERNAME_LIVE').'', 'Username:'. getenv('MEDI_ASSIST_API_USERNAME').'',
'Password:'. getenv('MEDI_ASSIST_API_PASSWORD_LIVE').'', 'Password:'. getenv('MEDI_ASSIST_API_PASSWORD').'',
]; ];
$body = [ $body = [
@ -541,13 +544,13 @@ class MediAssistApiController extends BaseController
helper('api'); helper('api');
$url = ''. getenv('MEDI_ASSIST_API_BASE_URL_LIVE').'/NetworkHospital'; $url = ''. getenv('MEDI_ASSIST_API_BASE_URL').'/NetworkHospital';
$method = 'POST'; $method = 'POST';
$headers = [ $headers = [
'Content-Type: application/json', 'Content-Type: application/json',
'Username:'. getenv('MEDI_ASSIST_API_USERNAME_LIVE').'', 'Username:'. getenv('MEDI_ASSIST_API_USERNAME').'',
'Password:'. getenv('MEDI_ASSIST_API_PASSWORD_LIVE').'', 'Password:'. getenv('MEDI_ASSIST_API_PASSWORD').'',
]; ];
$body = [ $body = [

View File

@ -106,7 +106,7 @@
<div class="form-group col-md-3"> <div class="form-group col-md-3">
<label for="client_branch">Issuer<span class="text-danger">*</span></label> <label for="client_branch">Issuer<span class="text-danger">*</span></label>
<select class="form-control" id="issuer" name="issuer" required> <select class="form-control" id="issuer" name="issuer" required>
<option value="0">Select Issure</option> <option value="0">Select Issuer</option>
<?php <?php
if (isset($issuer) && count($issuer)) { if (isset($issuer) && count($issuer)) {
foreach ($issuer as $key => $value) { foreach ($issuer as $key => $value) {
@ -390,7 +390,8 @@
_INPUT_ _INPUT_
<i class="mdi mdi-magnify datatable-search-icon"></i> <i class="mdi mdi-magnify datatable-search-icon"></i>
</div>`, </div>`,
searchPlaceholder: "Search" searchPlaceholder: "Search",
emptyTable: '<div class="text-center text-muted">No Data found</div>'
}, },
paging: true, paging: true,
pageLength: 10, pageLength: 10,

View File

@ -684,6 +684,7 @@ input:checked + .slider_blue::before {
var message = (policy_PrimaryKey === '') ? var message = (policy_PrimaryKey === '') ?
'Policy Created successfully' : 'Policy Updated Successfully'; 'Policy Created successfully' : 'Policy Updated Successfully';
toastr.success(message, 'Success'); toastr.success(message, 'Success');
window.scrollTo({ top: 0, behavior: 'smooth' });
}, 1000); }, 1000);
} }

View File

@ -243,7 +243,7 @@
<div class="form-group col-md-3"> <div class="form-group col-md-3">
<label for="addon_policy">Policy Issue Month<span id="base_danger" class="text-danger">*</span></label> <label for="addon_policy">Policy Issue Month<span id="base_danger" class="text-danger">*</span></label>
<input type="text" class="form-control" id="month" name="month" placeholder="MM/YYYY" > <input type="text" class="form-control" id="month" name="month" placeholder="MM/YYYY" required>
</div> </div>
<div class="form-group col-md-3"> <div class="form-group col-md-3">