IDEMPIERE-307 Improve readability of AmtInWords_EN output. Apply patch from hahmed ( Hesham S. Ahmed ).

This commit is contained in:
Heng Sin Low 2012-06-22 17:03:52 +08:00
parent 350bbce59e
commit 4da9bf4cac
1 changed files with 35 additions and 35 deletions

View File

@ -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
/**