details:   https://code.openbravo.com/erp/devel/pi/rev/c0a92af028ec
changeset: 14901:c0a92af028ec
user:      Antonio Moreno <antonio.moreno <at> openbravo.com>
date:      Mon Dec 19 18:11:55 2011 +0100
summary:   Fixed issue 19331. Format the values sent to the FIC so that f.e. 
dates work correctly

diffstat:

 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-pick-and-execute-grid.js
 |  13 ++++++++-
 1 files changed, 11 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 1fe9ce39fb42 -r c0a92af028ec 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-pick-and-execute-grid.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-pick-and-execute-grid.js
      Mon Dec 19 15:35:39 2011 +0100
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-pick-and-execute-grid.js
      Mon Dec 19 18:11:55 2011 +0100
@@ -337,13 +337,22 @@
         record = isc.addProperties({}, this.getRecord(rowNum), 
this.getEditValues(rowNum)),
         fields = this.view.viewProperties.fields,
         len = fields.length,
-        fld, i, value, undef;
+        fld, i, value, undef, type;
 
     for (i = 0; i < len; i++) {
       fld = fields[i];
       value = record[fld.name];
       if (value !== undef) {
-        contextInfo[fld.inpColumnName] = value;
+        if (fld.type) {
+          type = isc.SimpleType.getType(fld.type);
+          if (type.createClassicString) {
+            contextInfo[fld.inpColumnName] = type.createClassicString(value);
+          } else {
+            contextInfo[fld.inpColumnName] = 
this.view.parentWindow.activeView.convertContextValue(value, fld.type);
+          }
+        } else {
+          contextInfo[fld.inpColumnName] = 
this.view.parentWindow.activeView.convertContextValue(value, fld.type);
+        }
       }
     }
 

------------------------------------------------------------------------------
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for 
developers. It will provide a great way to learn Windows Azure and what it 
provides. You can attend the event by watching it streamed LIVE online.  
Learn more at http://p.sf.net/sfu/ms-windowsazure
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to