solve 1636180 Imprimir Montos Expresados en Letras

http://sourceforge.net/tracker/?func=detail&atid=879332&aid=1636180&group_id=176962
This commit is contained in:
vpj-cd 2007-01-30 23:20:56 +00:00
parent 595936672b
commit 2362c44b3a
1 changed files with 5 additions and 2 deletions

View File

@ -57,7 +57,7 @@ public class AmtInWords_ES implements AmtInWords
private static final String[] numNames = { private static final String[] numNames = {
"", "",
" UNO", " UN",
" DOS", " DOS",
" TRES", " TRES",
" CUATRO", " CUATRO",
@ -106,7 +106,10 @@ public class AmtInWords_ES implements AmtInWords
number /= 10; number /= 10;
} }
if (number == 0) if (number == 0)
return soFar; //return soFar;
// Begin e-Evolution ogi-cd
return tensNames[number % 10] + soFar; // e-Evolution ogi-cd
// End e-Evolution ogi-cd
if (number > 1) if (number > 1)
soFar = "S" + soFar; soFar = "S" + soFar;
if (number == 1 && soFar != "") if (number == 1 && soFar != "")