Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0029641Openbravo ERPA. Platformpublic2015-04-20 19:442015-05-26 10:11
caristu 
NaroaIriarte 
highmajoralways
closedfixed 
5
 
3.0PR15Q3 
alostale
Core
No
0029641: Summary functions are not displaying correct values the first time having lazy filtering enabled
Summary functions are not displaying correct values the first time the window is opened, having lazy filtering enabled.

They should not show any initial value when the lazy filtering is enabled.
For reproducing th issue is necessary to have a summary function field.

1) Install the following module, which already has a summary function field:

 https://code.openbravo.com/erp/mods/org.openbravo.client.application.examples/ [^]

2) As system admin, go to the Grid Configuration at Window/Tab/Field level and enable the lazy filtering for the Sales Order header
3) As group admin, go to the [Sales Order] and create a saved view with a summary function (Count for example). Set the view as default view
4) Close the window and open it again. Notice that the summary function is showing a value. Is not correct. It should not show any value when the window is opened.
No tags attached.
Issue History
2015-04-20 19:44caristuNew Issue
2015-04-20 19:44caristuAssigned To => platform
2015-04-20 19:44caristuModules => Core
2015-04-20 19:44caristuResolution time => 1432072800
2015-04-20 19:44caristuTriggers an Emergency Pack => No
2015-04-20 19:51caristuIssue Monitored: networkb
2015-04-21 15:20alostaleStatusnew => acknowledged
2015-05-14 12:15alostaleStatusacknowledged => scheduled
2015-05-14 12:15alostaleAssigned Toplatform => inigosanchez
2015-05-19 11:50alostaleAssigned Toinigosanchez => NaroaIriarte
2015-05-20 14:55NaroaIriarteSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=8598#r8598
2015-05-20 16:08NaroaIriarteIssue Monitored: NaroaIriarte
2015-05-20 16:08NaroaIriarteIssue End Monitor: NaroaIriarte
2015-05-20 16:08NaroaIriarteReview Assigned To => alostale
2015-05-20 16:09NaroaIriarteIssue Monitored: alostale
2015-05-20 16:10hgbotCheckin
2015-05-20 16:10hgbotNote Added: 0077601
2015-05-20 16:10hgbotStatusscheduled => resolved
2015-05-20 16:10hgbotResolutionopen => fixed
2015-05-20 16:10hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/f164ac49351bdc5e949683f01b601151666e3194 [^]
2015-05-21 22:54hudsonbotCheckin
2015-05-21 22:54hudsonbotNote Added: 0077640
2015-05-26 10:11alostaleNote Added: 0077742
2015-05-26 10:11alostaleStatusresolved => closed
2015-05-26 10:11alostaleFixed in Version => 3.0PR15Q3

Notes
(0077601)
hgbot   
2015-05-20 16:10   
Repository: erp/devel/pi
Changeset: f164ac49351bdc5e949683f01b601151666e3194
Author: Naroa Iriarte <naroa.iriarte <at> openbravo.com>
Date: Wed May 20 15:32:41 2015 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/f164ac49351bdc5e949683f01b601151666e3194 [^]

Fixed issue 29641: With lazy filtering, summary functions display wrong value

The problem is when a summary function field exists, in this case, it is not taken into account the
fact of having the lazy filtering enabled. So, when a summary function is added to a field using the UI,
the values of that summary function are displayed before clicking the check icon, under the funnel icon,
in the right.
For fix this, a condition that checks if the lazy filtering has been enabled has been added.

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
---
(0077640)
hudsonbot   
2015-05-21 22:54   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/78fa6e8fdcad [^]
Maturity status: Test
(0077742)
alostale   
2015-05-26 10:11   
code reviewed + tested