Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0020825Openbravo ERP09. Financial managementpublic2012-06-21 12:392012-07-28 01:23
caristu 
migueldejuana 
urgentmajoralways
closedfixed 
5
3.0MP11 
3.0MP14 
Core
No
0020825: Buttons of the G/L Journal disappear
Navigating from General Ledger Report to G/L Journal makes buttons of the G/L Journal disappear.
1) Go to G/L Journal -> Create new
2) Go to Header -> Create new
3) Go to Lines -> Create new:
* Accounting combination = 1110
* Debit = 100
* Credit = 0
4) Create new line:
* Accounting combination = 1120
* Debit = 0
* Credit = 100
5) Press "Complete" process button (and complete)
6) Press "Post" process button

Close browser + Clean cache

7) Go to the General Ledger Report window and search with today dates. Click "Search button". Click the date link in "View Results" section.
8) In the General Ledger Journal, click in the "Journal Entry" link. This make us navigate to the G/L Journal, there are some cases that it navigates to Transanction (Financial Account child) or Purchase Invoice.
9) In the G/L Journal window, verify that the top-right buttons don't appear.
10) If you click the refresh button, the buttons now appear!
No tags attached.
related to defect 0021332 closed mtaal openDirectTab doesn't show process buttons if the opened tab is a child one 
Issue History
2012-06-21 12:39caristuNew Issue
2012-06-21 12:39caristuAssigned To => mirurita
2012-06-21 12:39caristuModules => Core
2012-06-21 12:39caristuResolution time => 1342044000
2012-06-21 12:41caristuIssue Monitored: networkb
2012-06-21 17:46miruritaAssigned Tomirurita => jonalegriaesarte
2012-06-25 13:21jonalegriaesarteAssigned Tojonalegriaesarte => ioritzCia
2012-07-02 16:25ioritzCiaAssigned ToioritzCia => alostale
2012-07-02 16:25ioritzCiaNote Added: 0050321
2012-07-20 12:55AugustoMauchAssigned Toalostale => migueldejuana
2012-07-25 13:45dbazSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=3662#r3662
2012-07-25 17:22dbazNote Added: 0050841
2012-07-27 15:05migueldejuanaSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=3669#r3669
2012-07-27 15:12hgbotCheckin
2012-07-27 15:12hgbotNote Added: 0050950
2012-07-27 15:12hgbotStatusnew => resolved
2012-07-27 15:12hgbotResolutionopen => fixed
2012-07-27 15:12hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/435530c44bdbd840a4d4ffb2fa4569aade61e28d [^]
2012-07-27 15:38caristuNote Added: 0050953
2012-07-27 15:38caristuStatusresolved => closed
2012-07-28 01:23hudsonbotCheckin
2012-07-28 01:23hudsonbotNote Added: 0050965
2012-08-08 18:24dbazRelationship addedrelated to 0021332

Notes
(0050321)
ioritzCia   
2012-07-02 16:25   
It appears to be a problem when calling updateButtonState method. It is only reproducible at first time, I had to clean the cache to be able to reproduce it after the first times. The issue seems to be located inside updateButtonState method inside refreshCustomButtons method. When calculating hideAllButtons selectedRecordsSize() is 0 when it should be 1.
(0050841)
dbaz   
2012-07-25 17:22   
Another easier way to reproduce the issue without following "Steps to reproduce" is just write this into the console:

OB.Utilities.openDirectTab('160', '65EA9560EEBF40CFB6BDE9677A9C7A5A');

Note that since the issue behavior is quite random (even following "Steps to reproduce") sometimes you will see the buttons but sometimes you won't.

In order to close the issue (once it be resolved), do it followind "Steps to reproduce"
(0050950)
hgbot   
2012-07-27 15:12   
Repository: erp/devel/pi
Changeset: 435530c44bdbd840a4d4ffb2fa4569aade61e28d
Author: Miguel de Juana <miguel.dejuana <at> openbravo.com>
Date: Fri Jul 27 15:11:44 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/435530c44bdbd840a4d4ffb2fa4569aade61e28d [^]

Fixed issue 20825: Now right top buttons are displayed in the issue case.
With this fix we resolver this corner case, but it should be analyzed the excessive calls to updateButtonState.

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/toolbar/ob-toolbar.js
---
(0050953)
caristu   
2012-07-27 15:38   
Verified
(0050965)
hudsonbot   
2012-07-28 01:23   
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/c6491bd9e10b [^]

Maturity status: Test