details: https://code.openbravo.com/erp/devel/pi/rev/6806e1475383
changeset: 23868:6806e1475383
user: Shankar Balachandran <shankar.balachandran <at> openbravo.com>
date: Tue Jun 24 23:31:11 2014 +0530
summary: Fixes Issue 26884: Can not save credit type Fields (Operon)
Set the last parameter to OB.Utilities.Number.OBPlainToOBMasked method calls in
number reference.
diffstat:
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-number.js
| 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r 615b38d35a71 -r 6806e1475383
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-number.js
---
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-number.js
Tue Jun 24 19:20:25 2014 +0200
+++
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-number.js
Tue Jun 24 23:31:11 2014 +0530
@@ -435,7 +435,7 @@
if (isc.isA.String(this.getValue())) {
//if the string is a math expression do not perform rounding yet.
if (this.getValue().indexOf('=') === -1) {
- value = OB.Utilities.Number.OBPlainToOBMasked(this.getValue(),
this.typeInstance.maskNumeric, this.typeInstance.decSeparator,
this.typeInstance.groupSeparator);
+ value = OB.Utilities.Number.OBPlainToOBMasked(this.getValue(),
this.typeInstance.maskNumeric, this.typeInstance.decSeparator,
this.typeInstance.groupSeparator, OB.Format.defaultGroupingSize);
} else {
value = this.getValue();
}
@@ -467,7 +467,7 @@
// first check if the number is valid
if (!isc.isA.String(value)) {
// format the value to be displayed.
- value = OB.Utilities.Number.OBPlainToOBMasked(value,
this.typeInstance.maskNumeric, this.typeInstance.decSeparator,
this.typeInstance.groupSeparator);
+ value = OB.Utilities.Number.OBPlainToOBMasked(value,
this.typeInstance.maskNumeric, this.typeInstance.decSeparator,
this.typeInstance.groupSeparator, OB.Format.defaultGroupingSize);
this.setElementValue(this.mapValueToDisplay(value));
}
}
------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits