details:   https://code.openbravo.com/erp/devel/pi/rev/075221192871
changeset: 22848:075221192871
user:      Guillermo Gil <guillermo.gil <at> openbravo.com>
date:      Wed Apr 09 15:13:33 2014 +0200
summary:   Fixed issue 25621:Summary function fields are not working fine

Summary Functions are refreshed when data gets refreshed

diffstat:

 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js
     |  5 +++++
 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
     |  4 ++++
 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-view.js
 |  5 +++++
 3 files changed, 14 insertions(+), 0 deletions(-)

diffs (44 lines):

diff -r c0638f312efc -r 075221192871 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js
     Wed Apr 09 17:01:17 2014 +0530
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js
     Wed Apr 09 15:13:33 2014 +0200
@@ -1703,6 +1703,11 @@
         }, 10);
       }
 
+      // Summary Functions are refreshed when data gets refreshed
+      if (view.viewGrid.showGridSummary) {
+        view.viewGrid.getSummaryRow();
+      }
+
       return false;
     };
 
diff -r c0638f312efc -r 075221192871 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
     Wed Apr 09 17:01:17 2014 +0530
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
     Wed Apr 09 15:13:33 2014 +0200
@@ -3207,6 +3207,10 @@
     isc.Offline.explicitOffline = previousExplicitOffline;
     // commented out as it removes an autosave action which is done in the 
edit complete method
     //    this.view.standardWindow.setDirtyEditForm(null);
+    // Summary Functions are refreshed when data gets refreshed
+    if (this.showGridSummary) {
+      this.getSummaryRow();
+    }
   },
 
   autoSave: function () {
diff -r c0638f312efc -r 075221192871 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-view.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-view.js
 Wed Apr 09 17:01:17 2014 +0530
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-view.js
 Wed Apr 09 15:13:33 2014 +0200
@@ -1726,6 +1726,11 @@
       return;
     }
 
+    // Summary Functions are refreshed when data gets refreshed
+    if (this.viewGrid.showGridSummary) {
+      this.viewGrid.getSummaryRow();
+    }
+
     record = this.viewGrid.getSelectedRecord();
 
     criteria = {

------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment 
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to