Fixed issue 25621:Summary function fields are not working fine
authorGuillermo Gil <guillermo.gil@openbravo.com>
Wed, 09 Apr 2014 15:13:33 +0200
changeset 22892 075221192871
parent 22891 c0638f312efc
child 22893 125620fe071d
Fixed issue 25621:Summary function fields are not working fine

Summary Functions are refreshed when data gets refreshed
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
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/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;
     };
 
--- 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 () {
--- 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 = {