Fix AmtInWords_ES error - UN CIENTO debe decir CIEN - ID: 2373704

Thanks to arboleda for fixing this
This commit is contained in:
Carlos Ruiz 2008-12-01 22:00:25 +00:00
parent 8b0ea3e307
commit 9d58437440
1 changed files with 4 additions and 0 deletions

View File

@ -152,6 +152,10 @@ public class AmtInWords_ES implements AmtInWords
if (n != 0)
{
String s = convertLessThanOneThousand (n);
if (s.startsWith ("UN CIENTO", 1))
{
s = s.replaceFirst ("UN CIENTO", "CIEN");
}
if (s.startsWith ("CINCO CIENTOS", 1))
{
s = s.replaceFirst ("CINCO CIENTOS", "QUINIENTOS");