Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0035278Openbravo ERP07. Sales managementpublic2017-02-13 22:112017-02-20 15:50
markmm82 
collazoandy4 
urgentmajoralways
closedfixed 
5
pi 
3.0PR16Q3.63.0PR16Q3.6 
markmm82
Core
No
0035278: Selected General Ledger filter value changes when pagination is executed in the Journal Entries report
Selected General Ledger filter value changes when pagination is executed in the Journal Entries report. It seems that the report always reload the GL field and use the first value in the combo to execute the report causing be impossible to see more entries than retrieved in the first page if the selected General Ledger is not the first one in the General Ledger filter.
1. Go to Journal Entries Report.
2. Select a valid From and To dates.
3. Set Organization filter as "F&B España S.A"
4. Set General Ledger filter as "F&B International Group US/A/US Dollar".
5. Run the report, and notice:
   Organization filter = "F&B España S.A"
   General Ledger filter as "F&B International Group US/A/US Dollar"
   In the grid of resulting values you can see entries related to US Dollar.
   At top, you will see that a yellow arrow with hint "Go to Next Record Range" has been enabled.
6. Go to the next page and notice:
   Organization filter = "F&B España S.A"
   General Ledger filter has changed to "F&B España, S.A. US/A/Euro". This is wrong.
   In the grid of resulting values you can see entries related to Euro instead of Dollar. This is wrong.
   Now two arrows are enabled (to go to the next page, and to go back to the previous page)
7. If you go to the previous page you should see the same than obtained in step 5 but you get other results related to "F&B España, S.A. US/A/Euro" GL.
   
Pass the General Ledger filter as parameter when pagination is executed, just like is currently doing with the Organization filter.
No tags attached.
blocks defect 0035252 closed collazoandy4 Selected General Ledger filter value changes when pagination is executed in the Journal Entries report 
Issue History
2017-02-15 16:56markmm82Typedefect => backport
2017-02-15 16:56markmm82Target Version => 3.0PR16Q3.6
2017-02-16 18:17collazoandy4Note Added: 0094400
2017-02-20 15:47hgbotCheckin
2017-02-20 15:47hgbotNote Added: 0094479
2017-02-20 15:47hgbotStatusscheduled => resolved
2017-02-20 15:47hgbotResolutionopen => fixed
2017-02-20 15:47hgbotFixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR16Q3.6/rev/874e54e18d53b6a9525e9a2a23586561aba42f14 [^]
2017-02-20 15:50markmm82Review Assigned To => markmm82
2017-02-20 15:50markmm82Note Added: 0094481
2017-02-20 15:50markmm82Statusresolved => closed
2017-02-20 15:50markmm82Fixed in Version => 3.0PR16Q3.6

Notes
(0094400)
collazoandy4   
2017-02-16 18:17   
Go to Journal Entries Report
  From: 01/01/2010
  To: 31/12/2017
  Organization = *
  General Ledger= F&B International Group
  Clic on SEARCH button to obtain results in HTML
  Click on "next page" and verify that General Ledger filter doesn't change his value
(0094479)
hgbot   
2017-02-20 15:47   
Repository: erp/backports/3.0PR16Q3.6
Changeset: 874e54e18d53b6a9525e9a2a23586561aba42f14
Author: Armaignac <collazoandy4 <at> gmail.com>
Date: Thu Feb 16 11:15:17 2017 -0500
URL: http://code.openbravo.com/erp/backports/3.0PR16Q3.6/rev/874e54e18d53b6a9525e9a2a23586561aba42f14 [^]

Fixes issue 35278: General Ledger filter changes with pagination in JE Report

Selected General Ledger filter value changes when pagination is executed in the
Journal Entries report

The General Ledger filter is not kept in the session to make use in the pagination.
For the solution, was saved the General Ledger Filter in the session every time
the search is executed (FIND action). By default, if there is any GL in the
session, the GL field will use the defaulted for the selected org. When paginating
always is used the account schema id stored in the session.

---
M src/org/openbravo/erpCommon/ad_reports/ReportGeneralLedgerJournal.java
---
(0094481)
markmm82   
2017-02-20 15:50   
Code review + testing OK