Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0019362Openbravo ERPA. Platformpublic2011-12-23 13:122012-04-28 02:31
psarobe 
guilleaer 
normalminoralways
closedfixed 
5
pi 
3.0MP11 
Core
No
0019362: Name of the tab is not correct when the tab is opened due to a button action
When a tab is opened because an action (clicking button) the name that shows the tab is not correct

This happens with POST buttons.
Login as Openbravo/openbravo
Change the role to QA testing admin
Go to sales invoice and create one invoice selecting:
- Business partner: Customer A
- Payment method Acc-1(Reconciliation)
- Organization: USA
Save
Create a line. Save
Complete the invoice
Go to Financial Account window and select: Accounting Documents EURO
Move to Transaction tab
Click the button Add transaction
Click Add payment button
Select Customer A
Select payment method Acc-1
You will see the newly invoice. Select it and click OK
Doing this you will have a new transaction in the tab
Move to Accounting configuration tab and select the Accounting schema Main US/Euro
From the section Payment in remove the value that is in the field: Cleared Payment Account
Save
Move to transaction tab and select the newly transaction
Click the button reconcile. Select the record and click the button Reconcile
Move to Reconciliation tab and select the newly reconciliation
Click the button Post. Click OK
It gives an error message. This is correct
If you refresh the tab notice that the post button is now POST:Invalid Account
Move to Accounting configuration and put again the same account that you remove (572.0)
Save
Go again to reconciliation tab and select the same reconciliation. Click the button Post
Now since everything is perfect, the record is post and a new tab is opened.
Notice the name of the tab is POST: Invalid account. This is WRONG

See attach
The name of the tab must be: POST
No tags attached.
related to defect 0015247 closed guilleaer Some tab title is not translated when redirected from cloned ops popup 
png bug.png (4,421) 2011-12-23 13:12
https://issues.openbravo.com/file_download.php?file_id=4856&type=bug
png
Issue History
2011-12-23 13:12psarobeNew Issue
2011-12-23 13:12psarobeAssigned To => alostale
2011-12-23 13:12psarobeFile Added: bug.png
2011-12-23 13:12psarobeModules => Core
2012-04-03 15:48alostaleAssigned Toalostale => guilleaer
2012-04-17 12:32hgbotCheckin
2012-04-17 12:32hgbotNote Added: 0047665
2012-04-17 12:32hgbotStatusnew => resolved
2012-04-17 12:32hgbotResolutionopen => fixed
2012-04-17 12:32hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/ac6225e96e997147ee4fa9658db6472dfd6b1755 [^]
2012-04-17 12:56guilleaerNote Added: 0047666
2012-04-17 13:27hgbotCheckin
2012-04-17 13:27hgbotNote Added: 0047668
2012-04-18 15:54hgbotCheckin
2012-04-18 15:54hgbotNote Added: 0047710
2012-04-21 14:24hudsonbotCheckin
2012-04-21 14:24hudsonbotNote Added: 0047819
2012-04-21 14:24hudsonbotCheckin
2012-04-21 14:24hudsonbotNote Added: 0047820
2012-04-26 11:19alostaleNote Added: 0048000
2012-04-26 11:19alostaleStatusresolved => new
2012-04-26 11:19alostaleResolutionfixed => open
2012-04-26 12:07hgbotCheckin
2012-04-26 12:07hgbotNote Added: 0048004
2012-04-26 12:51alostaleStatusnew => scheduled
2012-04-26 12:51alostalefix_in_branch => pi
2012-04-26 12:51alostaleStatusscheduled => resolved
2012-04-26 12:51alostaleResolutionopen => fixed
2012-04-26 12:52alostaleNote Added: 0048022
2012-04-26 12:52alostaleStatusresolved => closed
2012-04-26 12:52alostaleFixed in Version => 3.0MP11
2012-04-26 15:26alostaleRelationship addedrelated to 0015247
2012-04-28 02:31hudsonbotCheckin
2012-04-28 02:31hudsonbotNote Added: 0048155

Notes
(0047665)
hgbot   
2012-04-17 12:32   
Repository: erp/devel/pi
Changeset: ac6225e96e997147ee4fa9658db6472dfd6b1755
Author: Guillermo Álvarez de Eulate <guillermo.alvarez <at> openbravo.com>
Date: Tue Apr 17 11:20:47 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/ac6225e96e997147ee4fa9658db6472dfd6b1755 [^]

Fixed issue 19362: Opened tab fter POST/UNPOST action has been corrected.

Because the POST/UNPOST actions always opens a new tab with the general ledger journal, the tab name after the fix will be the identifier of this report (800000 in AD_PROCESS). Traductions are supported. Also, when General Ledeger Journal is opened after POST/UNPOST actions, it will not be added to the recent views list.

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/toolbar/ob-action-button.js
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/utilities/ob-view-manager.js
M src/org/openbravo/base/secureApp/HttpSecureAppServlet.java
M src/org/openbravo/base/secureApp/PopUp_Response.html
M src/org/openbravo/base/secureApp/PopUp_Response.xml
M src/org/openbravo/erpCommon/ad_actionButton/Posted.java
---
(0047666)
guilleaer   
2012-04-17 12:56   
Test plan:
1. Logged as QA testing admim
2. Go to process request and unschelude acct server process
3. go to financial account window
4. Select "Accounting documents EURO"
5. Go to the tab "Reconciliations"
6. Select one reconciliation (1000050) and click in the Unpost button
7. A pop up will be opened, with field "Delete accounting entry" unchecked push OK
8. New tab should be opened with a correct name
9. Close the opened tab (General ledger journal)
10. Select the same reconciliation (1000050) and click again in the unpost button.
11. A pop up will be opened, with field "Delete accounting entry" CHECKED push OK
12. Now the reconciliation can be posted
13. Select the same reconciliation (1000050) and click "post".
14. Ok in the pop up
15. A new tab should be opened called "General Ledger Journal"
16. close the opened tab and return to financial Unpost it again (steps 10,11,12)
17. go to the tab "Accounting configuration"
18. Select "MAIN USA EURO" and open it in form view
19. delete the value of "Cleared payment account" and save
20. Return to the reconciliation tab and select the previous reconciliation (1000050)
21. Try to POST it (steps 13,14)
22. An error will occur and the text of the POST button will change (POST: invalid account)
23. Go back to the Accounting configuration tab
24. Open MAIN USA EURO in form view
25. fill the field Cleared Payment Account with the previous value (57200) and save it
26. Go back to the reconciliations tab
27. Try to POSt the previous reconciliation (1000050)(steps 13,14)
28. A new tab should be opened called "General Ledger Journal"
29. Go to the workspace tab and check that "General ledger Journal" doesn't appears in the recent views list
(0047668)
hgbot   
2012-04-17 13:27   
Repository: erp/devel/pi
Changeset: 3d0c875831e5fe462d2247a7d611787037bdc401
Author: Guillermo Álvarez de Eulate <guillermo.alvarez <at> openbravo.com>
Date: Tue Apr 17 13:25:36 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/3d0c875831e5fe462d2247a7d611787037bdc401 [^]

Related to issue 19362: Avoiding possible errors with and undefined parameter

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/toolbar/ob-action-button.js
---
(0047710)
hgbot   
2012-04-18 15:54   
Repository: tools/automation/int
Changeset: 80b979e6c1729a2f2ca98b372fbe2192b60419b4
Author: Pablo Lujan <pablo.lujan <at> openbravo.com>
Date: Tue Apr 17 12:29:11 2012 +0200
URL: http://code.openbravo.com/tools/automation/int/rev/80b979e6c1729a2f2ca98b372fbe2192b60419b4 [^]

Related to issue 19362 - Fixes Post window name

---
M src-test/com/openbravo/test/integration/erp/gui/financial/accounting/analysis/PostWindow.java
---
(0047819)
hudsonbot   
2012-04-21 14:24   
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/2eb57286c1fc [^]

Maturity status: Test
(0047820)
hudsonbot   
2012-04-21 14:24   
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/2eb57286c1fc [^]

Maturity status: Test
(0048000)
alostale   
2012-04-26 11:19   
Reopening issue due to code review:

-In closeProcessPopup method, params can be undefined, this case would fail.
-In view manager: var should be at the beginning of the method: http://wiki.openbravo.com/wiki/JavaScript_Coding_Conventions#Variable_Declaration [^]
-In Posted.java. Title is set with "POST" which is always overwritten.
-In case process 80000 doesn't exits NPE would be thrown.
-Use a constant for 80000
(0048004)
hgbot   
2012-04-26 12:07   
Repository: erp/devel/pi
Changeset: 6f9831dd17ba97b04a7a1f7a4125edb83ee710ee
Author: Guillermo Álvarez de Eulate <guillermo.alvarez <at> openbravo.com>
Date: Thu Apr 26 12:02:01 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/6f9831dd17ba97b04a7a1f7a4125edb83ee710ee [^]

Related to issue 19362: Improving quality of code in response to code review

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/utilities/ob-view-manager.js
M src/org/openbravo/erpCommon/ad_actionButton/Posted.java
---
(0048022)
alostale   
2012-04-26 12:52   
Code reviewed and verified on pi@6f9831dd17ba
(0048155)
hudsonbot   
2012-04-28 02:31   
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/cd923b317af4 [^]

Maturity status: Test