details: /erp/devel/pi/rev/f0a158d9fb17
changeset: 9444:f0a158d9fb17
user: Martin Taal <martin.taal <at> openbravo.com>
date: Wed Dec 29 11:01:00 2010 +0100
summary: Fixed formatting issue with numeric fields in grid columns
diffstat:
modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/reference/NumberUIDefinition.java
| 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (21 lines):
diff -r 2f1eabb421ba -r f0a158d9fb17
modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/reference/NumberUIDefinition.java
---
a/modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/reference/NumberUIDefinition.java
Tue Dec 28 20:17:59 2010 +0100
+++
b/modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/reference/NumberUIDefinition.java
Wed Dec 29 11:01:00 2010 +0100
@@ -70,14 +70,14 @@
final StringBuilder sb = new StringBuilder();
if (shortFormat != null) {
sb.append("shortDisplayFormatter: function(value, field, component,
record) {"
- + "return OB.Utilities.Number.OBPlainToOBMasked(value," + "'" +
shortFormat.getFormat()
+ + "return OB.Utilities.Number.JSToOBMasked(value," + "'" +
shortFormat.getFormat()
+ "'," + "'" + shortFormat.getDecimalSymbol() + "'," + "'"
+ shortFormat.getGroupingSymbol() + "',
OB.Format.defaultGroupingSize);" + "},");
}
if (normalFormat != null) {
sb.append("normalDisplayFormatter: function(value, field, component,
record) {"
- + "return OB.Utilities.Number.OBPlainToOBMasked(value," + "'"
- + normalFormat.getFormat() + "'," + "'" +
normalFormat.getDecimalSymbol() + "'," + "'"
+ + "return OB.Utilities.Number.JSToOBMasked(value," + "'" +
normalFormat.getFormat()
+ + "'," + "'" + normalFormat.getDecimalSymbol() + "'," + "'"
+ normalFormat.getGroupingSymbol() + "',
OB.Format.defaultGroupingSize);" + "},");
}
------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and,
should the need arise, upgrade to a full multi-node Oracle RAC database
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits