[ 1883270 ] Enhance Document No Formatting

Duplicating the number on document save
This commit is contained in:
Carlos Ruiz 2008-02-09 05:59:44 +00:00
parent fa68ad7513
commit 72c8ce87c1
1 changed files with 2 additions and 4 deletions

View File

@ -622,11 +622,9 @@ public class MSequence extends X_AD_Sequence
StringBuffer doc = new StringBuffer();
if (prefix != null && prefix.length() > 0)
doc.append(parseVariable(prefix, po, trxName));
if (decimalPattern != null && decimalPattern.length() > 0) {
if (decimalPattern != null && decimalPattern.length() > 0)
doc.append(new DecimalFormat(decimalPattern).format(next));
} else {
doc.append(next);
}
else
doc.append(next);
if (suffix != null && suffix.length() > 0)
doc.append(parseVariable(suffix, po, trxName));