From a9ea4e2031e920a8fff2adac5e32dea74ede34a6 Mon Sep 17 00:00:00 2001 From: Smart Date: Mon, 7 Oct 2024 12:24:37 +0530 Subject: [PATCH] =?UTF-8?q?CHANGE=5Fin=20=1B[200~=20=20=20=20public=20func?= =?UTF-8?q?tion=20FloterNotesConvertion(){?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Controllers/EmployeeRestController.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/app/Controllers/EmployeeRestController.php b/app/Controllers/EmployeeRestController.php index e6aca562..79a02293 100755 --- a/app/Controllers/EmployeeRestController.php +++ b/app/Controllers/EmployeeRestController.php @@ -1463,15 +1463,13 @@ class EmployeeRestController extends AdminController $result = 'Can Add Self '; }else if($value != 0 && $key ==='childrens') { if($value > 1){ $result .= ' + '.$value.' Children'; }else{ $result .= ' + '.$value.' Child'; } + }else if($value != 0 && $key ==='parents'){ + if($value > 1){ $result .= ' + '.$value.' Parents'; }else{ $result .= ' + '.$value.' Parent'; } + }else if($value != 0 && $key ==='parents-in-law'){ + if($value > 1){ $result .= ' + '.$value.' Parent in law'; }else{ $result .= ' + '.$value.' Parents in law'; } }else if($value != 0 && $key ==='elders_count') { - }else{ - $string = str_replace('-', ' ', $key); - $string = ucwords($string); - $result .= ' + '.$value.' '.$string; } - - } }