From 4da9bf4cac723dcbe4e4ed3d471a96f1b8da00c1 Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Fri, 22 Jun 2012 17:03:52 +0800 Subject: [PATCH] IDEMPIERE-307 Improve readability of AmtInWords_EN output. Apply patch from hahmed ( Hesham S. Ahmed ). --- .../src/org/compiere/util/AmtInWords_EN.java | 70 +++++++++---------- 1 file changed, 35 insertions(+), 35 deletions(-) diff --git a/org.adempiere.base/src/org/compiere/util/AmtInWords_EN.java b/org.adempiere.base/src/org/compiere/util/AmtInWords_EN.java index ef11edcd4f..b9eccd456e 100644 --- a/org.adempiere.base/src/org/compiere/util/AmtInWords_EN.java +++ b/org.adempiere.base/src/org/compiere/util/AmtInWords_EN.java @@ -36,50 +36,50 @@ public class AmtInWords_EN implements AmtInWords /** Thousands plus */ private static final String[] majorNames = { "", - "Thousand-", - "Million-", - "Billion-", - "Trillion-", - "Quadrillion-", - "Quintillion-" + "Thousand ", + "Million ", + "Billion ", + "Trillion ", + "Quadrillion ", + "Quintillion " }; /** Ten to Ninety */ private static final String[] tensNames = { "", - "Ten", - "Twenty", - "Thirty", - "Forty", - "Fifty", - "Sixty", - "Seventy", - "Eighty", - "Ninety" + "Ten ", + "Twenty ", + "Thirty ", + "Forty ", + "Fifty ", + "Sixty ", + "Seventy ", + "Eighty ", + "Ninety " }; /** numbers to 19 */ private static final String[] numNames = { "", - "One", - "Two", - "Three", - "Four", - "Five", - "Six", - "Seven", - "Eight", - "Nine", - "Ten", - "Eleven", - "Twelve", - "Thirteen", - "Fourteen", - "Fifteen", - "Sixteen", - "Seventeen", - "Eighteen", - "Nineteen" + "One ", + "Two ", + "Three ", + "Four ", + "Five ", + "Six ", + "Seven ", + "Eight ", + "Nine ", + "Ten ", + "Eleven ", + "Twelve ", + "Thirteen ", + "Fourteen ", + "Fifteen ", + "Sixteen ", + "Seventeen ", + "Eighteen ", + "Nineteen " }; /** @@ -105,7 +105,7 @@ public class AmtInWords_EN implements AmtInWords } if (number == 0) return soFar; - return numNames[number] + "Hundred-" + soFar; + return numNames[number] + "Hundred " + soFar; } // convertLessThanOneThousand /**