From 65e679e84b63e47da42d507d6b011d66b0784f04 Mon Sep 17 00:00:00 2001 From: gandhimathi Date: Wed, 20 Sep 2017 07:50:39 +0000 Subject: [PATCH] payslip.php edited online with Bitbucket --- application/controllers/payslip.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/controllers/payslip.php b/application/controllers/payslip.php index 227682a7..4d6e3bf2 100755 --- a/application/controllers/payslip.php +++ b/application/controllers/payslip.php @@ -482,7 +482,7 @@ function getEmployee() $no = floor($no / $divider); $i += ($divider == 10) ? 1 : 2; if ($number) { - $plural = (($counter = count($str)) && $number > 9) ? 's' : null; + $plural = (($counter = count($str)) && $number > 1) ? 's' : null; $hundred = ($counter == 1 && $str[0]) ? ' and ' : null; $str [] = ($number < 21) ? $words[$number] . " " . $digits[$counter] . $plural . " " . $hundred