BF: [ 2613760 ] Correction for check printing in French
http://sourceforge.net/tracker/?func=detail&atid=883808&aid=2613760&group_id=176962 The amount in words does not works in the previous version with the European numeric displaying.(blank instead comma)
This commit is contained in:
parent
46f5a77bf4
commit
d566a0f109
|
@ -202,8 +202,21 @@ public class AmtInWords_FR implements AmtInWords
|
|||
pos = pos2;
|
||||
String oldamt = amount;
|
||||
amount = amount.replaceAll (",", "");
|
||||
int newpos = amount.lastIndexOf ('.');
|
||||
int pesos = Integer.parseInt (amount.substring (0, newpos));
|
||||
|
||||
String amttobetranslate = amount.substring (0, (pos));
|
||||
|
||||
// Here we clean unexpected space in the amount
|
||||
String finalamount = new String();
|
||||
char[] mychararray = amttobetranslate.toCharArray();
|
||||
for (int i = 0; i < amttobetranslate.length (); i++)
|
||||
{
|
||||
if ( !Character.isSpaceChar(mychararray[i]))
|
||||
{
|
||||
finalamount = finalamount.concat(String.valueOf(mychararray[i]));
|
||||
}
|
||||
}
|
||||
|
||||
int pesos = Integer.parseInt (finalamount);
|
||||
sb.append (convert (pesos));
|
||||
for (int i = 0; i < oldamt.length (); i++)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue