Skip to content
Snippets Groups Projects
Commit a034cda6 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Better test

parent b8736b0a
Branches
Tags
No related merge requests found
...@@ -45,9 +45,8 @@ function dolNumberToWord($numero, $langs, $numorcurrency='number') ...@@ -45,9 +45,8 @@ function dolNumberToWord($numero, $langs, $numorcurrency='number')
} }
/*In dolibarr 3.6.2 (my current version) doesn't have $langs->default and /*In dolibarr 3.6.2 (my current version) doesn't have $langs->default and
in case exist why ask $lang like a parameter?*/ in case exist why ask $lang like a parameter?*/
if ($langs == 'es_MX' && $numorcurrency == 'currency') if (((is_object($langs) && $langs->default == 'es_MX') || (! is_object($langs) && $langs == 'es_MX')) && $numorcurrency == 'currency')
{ {
if ($numero>=1 && $numero<2) { if ($numero>=1 && $numero<2) {
return ("UN PESO ".$parte_decimal." / 100 M.N."); return ("UN PESO ".$parte_decimal." / 100 M.N.");
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment