payslip.php edited online with Bitbucket
This commit is contained in:
parent
041c66bf6a
commit
65e679e84b
@ -482,7 +482,7 @@ function getEmployee()
|
|||||||
$no = floor($no / $divider);
|
$no = floor($no / $divider);
|
||||||
$i += ($divider == 10) ? 1 : 2;
|
$i += ($divider == 10) ? 1 : 2;
|
||||||
if ($number) {
|
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;
|
$hundred = ($counter == 1 && $str[0]) ? ' and ' : null;
|
||||||
$str [] = ($number < 21) ? $words[$number] .
|
$str [] = ($number < 21) ? $words[$number] .
|
||||||
" " . $digits[$counter] . $plural . " " . $hundred
|
" " . $digits[$counter] . $plural . " " . $hundred
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user