From 9d58437440faebd52b0b97a74b89867dc606a716 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Mon, 1 Dec 2008 22:00:25 +0000 Subject: [PATCH] Fix AmtInWords_ES error - UN CIENTO debe decir CIEN - ID: 2373704 Thanks to arboleda for fixing this --- base/src/org/compiere/util/AmtInWords_ES.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/base/src/org/compiere/util/AmtInWords_ES.java b/base/src/org/compiere/util/AmtInWords_ES.java index 3b71f1517c..4a443cb739 100644 --- a/base/src/org/compiere/util/AmtInWords_ES.java +++ b/base/src/org/compiere/util/AmtInWords_ES.java @@ -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");