details:   https://code.openbravo.com/erp/devel/pi/rev/527073d212bc
changeset: 20435:527073d212bc
user:      Augusto Mauch <augusto.mauch <at> openbravo.com>
date:      Tue May 21 17:30:46 2013 +0200
summary:   Fixes issue 23868: Numeric columns are not stored as strings

In the fix of the issue 23758, after rounding the number they were being stored 
as strings when they should have been stored as numbers.

diffstat:

 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-number.js
 |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 7536e04c7099 -r 527073d212bc 
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
      Mon May 20 13:12:23 2013 +0200
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-number.js
      Tue May 21 17:30:46 2013 +0200
@@ -433,7 +433,7 @@
 
     // Make sure the number is rounded using the number of decimal digits 
specified in the number typeInstance
     value = OB.Utilities.Number.OBPlainToOBMasked(this.getValue(), 
this.typeInstance.maskNumeric, this.typeInstance.decSeparator, 
this.typeInstance.groupSeparator);
-    this.setValue(value);
+    this.setValue(OB.Utilities.Number.OBMaskedToJS(value));
 
     if (this.grid && this.grid.isEditing && this.grid.isEditing()) {
       this.grid.setEditValue(this.grid.getEditRow(), this.name, 
this.getValue(), true, true);

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to