2
0
forked from Wavyzz/dolibarr

Fix phpcs

This commit is contained in:
Laurent Destailleur
2020-08-06 03:55:47 +02:00
parent b40177a8c8
commit 37f1b27bd2

View File

@@ -219,8 +219,8 @@ function dolNumberToWord($numero, $langs, $numorcurrency = 'number')
$entexto .= hundreds2text($CdMILLON, $DdMILLON, $udMILLON); $entexto .= hundreds2text($CdMILLON, $DdMILLON, $udMILLON);
if (!$CdMMillon && !$DdMMillon && !$UdMMillon && !$CdMILLON && !$DdMILLON && $udMILLON == 1) if (!$CdMMillon && !$DdMMillon && !$UdMMillon && !$CdMILLON && !$DdMILLON && $udMILLON == 1)
$entexto .= " MILL&OacuteN "; $entexto .= " MILL&OacuteN ";
else else
$entexto .= " MILLONES "; $entexto .= " MILLONES ";
} }
if ($number >= 1000) { if ($number >= 1000) {
$cdm = (int) ($numero / 100000); $cdm = (int) ($numero / 100000);
@@ -240,7 +240,7 @@ function dolNumberToWord($numero, $langs, $numorcurrency = 'number')
$entexto .= hundreds2text($c, $d, $u); $entexto .= hundreds2text($c, $d, $u);
if (!$cdm && !$ddm && !$udm && !$c && !$d && !$u && $number > 1000000) if (!$cdm && !$ddm && !$udm && !$c && !$d && !$u && $number > 1000000)
$entexto .= " DE"; $entexto .= " DE";
$entexto .= " PESOS ".$parte_decimal." / 100 M.N."; $entexto .= " PESOS ".$parte_decimal." / 100 M.N.";
} }
return $entexto; return $entexto;
} }