payslip.php edited online with Bitbucket

This commit is contained in:
gandhimathi 2017-09-20 07:50:39 +00:00
parent 041c66bf6a
commit 65e679e84b

View File

@ -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