diff --git a/app/Controllers/EmpDataServiceController.php b/app/Controllers/EmpDataServiceController.php
index 3c7b8860..1b3fa587 100644
--- a/app/Controllers/EmpDataServiceController.php
+++ b/app/Controllers/EmpDataServiceController.php
@@ -146,19 +146,20 @@ class EmpDataServiceController extends BaseController
$totals = round($totals, 2);
- $this->removeOldExportInfoFromBatchFile($export_data);
-
-
if (!empty($cash_balance)) {
if ((int) $cash_balance['balance'] < (int) $totals) {
-
+
$this->myLogger->logme('error', 'Inception export failed due to insufficient deposit amount.');
+ $this->myLogger->logme('error', 'Inception export failed due to insufficient deposit amount. CASH BALANCE : {balance} and TOTAL AMOUNT : {total}', ['balance' => $cash_balance['balance'], 'total' => $totals]);
return 0;
}
}
+ $this->removeOldExportInfoFromBatchFile($export_data);
+
+
// Log the count of exported data
$count = count($objects);
$export_data['count'] = $count;
diff --git a/app/Controllers/EmployeeController.php b/app/Controllers/EmployeeController.php
index 644c97ff..61c66278 100644
--- a/app/Controllers/EmployeeController.php
+++ b/app/Controllers/EmployeeController.php
@@ -974,6 +974,14 @@ class EmployeeController extends AdminController
'{INSURER_BRANCH}' =>$value['insurer_branch_city'],
'{RELATION}' =>$value['relationship'],
'{TPA_LOGO}' => base_url() . 'public/uploads/logo/' . $value['tpa_logo'],
+ '{MEDI_USER}' => base_url() . 'public/e_card_imgs/medi_uesr.jpg',
+ '{MEDI_INSURER}' => base_url() . 'public/e_card_imgs/Magma.png',
+ '{MEDI_BARCODE}' => base_url() . 'public/e_card_imgs/borcode.jpeg',
+ '{QR_ANDROID}' => base_url() . 'public/e_card_imgs/android.png',
+ '{QR_IOS}' => base_url() . 'public/e_card_imgs/ios.png',
+ '{QR_ANDROID_2}' => base_url() . 'public/e_card_imgs/play_store.png',
+ '{QR_IOS_2}' => base_url() . 'public/e_card_imgs/appstore.png',
+
];
// Replace placeholders with values in HTML content
@@ -1198,6 +1206,14 @@ class EmployeeController extends AdminController
'{BACK_CARD}' => base_url() . 'public/uploads/template_bg/' . $tpa_id['back_card'],
'{TPA_LOGO}' => base_url() . 'public/uploads/logo/' . $tpa_id['tpa_logo'],
'{INSURER_LOGO}' => base_url() . 'public/assets/images/sample_logo_3.png',
+ '{MEDI_USER}' => base_url() . 'public/e_card_imgs/medi_uesr.jpg',
+ '{MEDI_INSURER}' => base_url() . 'public/e_card_imgs/Magma.png',
+ '{MEDI_BARCODE}' => base_url() . 'public/e_card_imgs/borcode.jpeg',
+ '{QR_ANDROID}' => base_url() . 'public/e_card_imgs/android.png',
+ '{QR_IOS}' => base_url() . 'public/e_card_imgs/ios.png',
+ '{QR_ANDROID_2}' => base_url() . 'public/e_card_imgs/play_store.png',
+ '{QR_IOS_2}' => base_url() . 'public/e_card_imgs/appstore.png',
+
];
// Get the values to replace the placeholders
diff --git a/app/Views/client_policy.php b/app/Views/client_policy.php
index c7636ad4..34a1cd9e 100644
--- a/app/Views/client_policy.php
+++ b/app/Views/client_policy.php
@@ -1087,8 +1087,9 @@
let result = `${integerWord}`;
console.log('decimalPart',decimalPart)
+ console.log('decimalPart',typeof decimalPart)
- if (decimalPart != '00') {
+ if (decimalPart != '00' && decimalPart != undefined) {
result += ` and `;
let decimalWord = convertNumberToWords(parseInt(decimalPart, 10))
result += `${decimalWord}`
diff --git a/app/Views/view_deposit.php b/app/Views/view_deposit.php
index 0e2c6854..222c7929 100644
--- a/app/Views/view_deposit.php
+++ b/app/Views/view_deposit.php
@@ -87,13 +87,13 @@
Transaction Details
-
-
diff --git a/public/e_card_imgs/Magma.png b/public/e_card_imgs/Magma.png
new file mode 100644
index 00000000..16dc853f
Binary files /dev/null and b/public/e_card_imgs/Magma.png differ
diff --git a/public/e_card_imgs/android.png b/public/e_card_imgs/android.png
new file mode 100644
index 00000000..6d4448bb
Binary files /dev/null and b/public/e_card_imgs/android.png differ
diff --git a/public/e_card_imgs/appstore.png b/public/e_card_imgs/appstore.png
new file mode 100644
index 00000000..39736cfd
Binary files /dev/null and b/public/e_card_imgs/appstore.png differ
diff --git a/public/e_card_imgs/barcode.jpg b/public/e_card_imgs/barcode.jpg
new file mode 100644
index 00000000..b5732bca
Binary files /dev/null and b/public/e_card_imgs/barcode.jpg differ
diff --git a/public/e_card_imgs/borcode.jpeg b/public/e_card_imgs/borcode.jpeg
new file mode 100644
index 00000000..a00aab42
Binary files /dev/null and b/public/e_card_imgs/borcode.jpeg differ
diff --git a/public/e_card_imgs/ios.png b/public/e_card_imgs/ios.png
new file mode 100644
index 00000000..0de01751
Binary files /dev/null and b/public/e_card_imgs/ios.png differ
diff --git a/public/e_card_imgs/medi_uesr.jpg b/public/e_card_imgs/medi_uesr.jpg
new file mode 100644
index 00000000..6e68ed25
Binary files /dev/null and b/public/e_card_imgs/medi_uesr.jpg differ
diff --git a/public/e_card_imgs/niva_babu.jpg b/public/e_card_imgs/niva_babu.jpg
new file mode 100644
index 00000000..72d4464e
Binary files /dev/null and b/public/e_card_imgs/niva_babu.jpg differ
diff --git a/public/e_card_imgs/play_store.png b/public/e_card_imgs/play_store.png
new file mode 100644
index 00000000..2ceade23
Binary files /dev/null and b/public/e_card_imgs/play_store.png differ
diff --git a/writable/e_card_template/hcl.html b/writable/e_card_template/hcl.html
deleted file mode 100644
index 7bc7ddd3..00000000
--- a/writable/e_card_template/hcl.html
+++ /dev/null
@@ -1,68 +0,0 @@
-
-
-
-
-
-
-
{INSURER_NAME}
-
-
-
-
- | POLICY NO |
- : |
- {TPA_ID} |
-
-
- | Name |
- : |
- {NAME} |
-
-
- | Gender |
- : |
- {NAME} |
-
-
- | age |
- : |
- {AGE} |
-
-
- | Employee code |
- : |
- {EMP_ID} |
-
-
- | Corporate name |
- : |
- {CORPORATE_NAME} |
-
-
- | Valid form |
- : |
- {POLICY_DATE} |
-
-
-
-
-
-
-
-
-
-
Terms&conditions
-
- - Submit this card & photo ID for availing cashless insurrer empanelled hospitals
- - Cashless facility is subject to approved by TPA as per policy terms and conditions
- - Validdity of this card is subject to valid policy renewal of policy
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/writable/e_card_template/phs_tpa.html b/writable/e_card_template/phs_tpa.html
index 2180891c..00e4e45a 100644
--- a/writable/e_card_template/phs_tpa.html
+++ b/writable/e_card_template/phs_tpa.html
@@ -3,25 +3,25 @@
-

+
- | Haamira Banu |
+ {NAME} |
- | Xoriant Solutions Pvt Ltd |
+ {CORPORATE_NAME} |
- | Dob : 02/05/2000EMP ID : 73496 |
+ Dob : {DOB}EMP ID : {EMP_ID} |
- | PHS ID : MBHI CHE 38728183 XSP E |
+ PHS ID : {TPA_ID} |
- | Valid upto : 31/01/2024 |
+ Valid upto : {POLICY_DATE} |
@@ -47,9 +47,9 @@
diff --git a/writable/e_card_template/vh_tpa.html b/writable/e_card_template/vh_tpa.html
index 79279c59..8009cc09 100644
--- a/writable/e_card_template/vh_tpa.html
+++ b/writable/e_card_template/vh_tpa.html
@@ -3,7 +3,7 @@
-
+
{INSURER_NAME}
@@ -60,9 +60,6 @@
imidiate intimation to vidal health is must incase of any hospitalisation
Download the vidal health mobile app from android iOS to get an E-Card check your policy claim status, Hospital list and more, Give a missed call to 022-4892-6099 from your registered mobile number, or visit www.vidalhealthpa.com,or scan << Qr code on corner >>
-
-

-
24x7 help line no
@@ -96,8 +93,8 @@
-
-
+
+