Openbravo Issue Tracking System - Openbravo ERP | |||||||||||||||||||
View Issue Details | |||||||||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||||||||
0031189 | Openbravo ERP | A. Platform | public | 2015-10-20 14:29 | 2016-01-25 19:02 | ||||||||||||||
Reporter | malsasua | ||||||||||||||||||
Assigned To | inigosanchez | ||||||||||||||||||
Priority | high | Severity | major | Reproducibility | always | ||||||||||||||
Status | closed | Resolution | no change required | ||||||||||||||||
Platform | OS | 20 | OS Version | Community Appliance | |||||||||||||||
Product Version | |||||||||||||||||||
Target Version | Fixed in Version | ||||||||||||||||||
Merge Request Status | |||||||||||||||||||
Review Assigned To | alostale | ||||||||||||||||||
OBNetwork customer | |||||||||||||||||||
Web browser | |||||||||||||||||||
Modules | Core | ||||||||||||||||||
Support ticket | |||||||||||||||||||
Regression level | |||||||||||||||||||
Regression date | |||||||||||||||||||
Regression introduced in release | |||||||||||||||||||
Regression introduced by commit | |||||||||||||||||||
Triggers an Emergency Pack | No | ||||||||||||||||||
Summary | 0031189: on change function is not working fine when the event is triggered by "TAB" key | ||||||||||||||||||
Description | in "on change" function, when the function recalculates one field value, if the event is triggered by the TAB key, the textualValue is wrong calculated. In the example attached (sample.txt), in the part of: standardPrice: 14.285714285714286 standardPrice_textualValue: "11.43" the correct value is 14.2857... and the textualValue is the old value. If the function is triggered by mouse event, then it works fine: standardPrice: 14.29 standardPrice_textualValue: "14.29" | ||||||||||||||||||
Steps To Reproduce | Create a callout in client side (as attached file): - Copy callout2 file at the end of ob-onchange-functions.js file. - Login as "Openbravo Admin". - Go to "Windows, Tabs and Fields" window and select "Price List" window. - Select "Product Price" tab and go to "Field" subtab. - Edit in form "Price Limit" field: - Check "Displayed" and "Show in Grid View" checkbox for testing later. - Also updated "On Change Function" field with following text: OB.OnChange.calcularpreciodia. - Save the new configuration of "Price Limit" field. - Logout and Compile. - Login with "F&B Internation Admin Group". - Go to "Price List" window and select "Tarifa de Ventas" record. - Navigate to "Product price" subtab. - Edit in grid any record and change "Unit Price" value to 2 and "List Price" value to 4. - Change "Price Limit" value to 3 and change the focus with the mouse or TAB key. Note than "Unit Price" is changed to 4. - Save the record and note than value in "Unit Price" is wrong because it is the old value. NOTE: This issue can be reproduced in grid and form view. Also it can be reproduced with Mouse/Tab key event too. | ||||||||||||||||||
Proposed Solution | |||||||||||||||||||
Additional Information | |||||||||||||||||||
Tags | No tags attached. | ||||||||||||||||||
Relationships |
| ||||||||||||||||||
Attached Files | sample.txt (1,113) 2015-10-20 14:29 https://issues.openbravo.com/file_download.php?file_id=8589&type=bug callout.txt (159) 2015-10-22 08:31 https://issues.openbravo.com/file_download.php?file_id=8616&type=bug callout2.txt (159) 2015-11-09 10:42 https://issues.openbravo.com/file_download.php?file_id=8703&type=bug | ||||||||||||||||||
Issue History | |||||||||||||||||||
Date Modified | Username | Field | Change | ||||||||||||||||
2015-10-20 14:29 | malsasua | New Issue | |||||||||||||||||
2015-10-20 14:29 | malsasua | Assigned To | => platform | ||||||||||||||||
2015-10-20 14:29 | malsasua | File Added: sample.txt | |||||||||||||||||
2015-10-20 14:29 | malsasua | Modules | => Core | ||||||||||||||||
2015-10-20 14:29 | malsasua | Resolution time | => 1447887600 | ||||||||||||||||
2015-10-20 14:29 | malsasua | Triggers an Emergency Pack | => No | ||||||||||||||||
2015-10-20 16:24 | malsasua | File Added: function.txt | |||||||||||||||||
2015-10-20 16:25 | malsasua | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=9739#r9739 | ||||||||||||||||
2015-10-21 11:48 | alostale | Status | new => scheduled | ||||||||||||||||
2015-10-21 11:48 | alostale | Assigned To | platform => inigosanchez | ||||||||||||||||
2015-10-22 08:29 | malsasua | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=9792#r9792 | ||||||||||||||||
2015-10-22 08:30 | malsasua | File Deleted: function.txt | |||||||||||||||||
2015-10-22 08:31 | malsasua | File Added: callout.txt | |||||||||||||||||
2015-10-22 08:31 | malsasua | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=9793#r9793 | ||||||||||||||||
2015-11-09 10:39 | inigosanchez | Relationship added | related to 0031404 | ||||||||||||||||
2015-11-09 10:40 | inigosanchez | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=10103#r10103 | ||||||||||||||||
2015-11-09 10:42 | inigosanchez | File Added: callout2.txt | |||||||||||||||||
2015-11-09 10:43 | inigosanchez | Review Assigned To | => alostale | ||||||||||||||||
2015-11-09 10:43 | inigosanchez | Note Added: 0081613 | |||||||||||||||||
2015-11-09 10:43 | inigosanchez | Status | scheduled => closed | ||||||||||||||||
2015-11-09 10:43 | inigosanchez | Resolution | open => no change required | ||||||||||||||||
2016-01-19 11:10 | alostale | Relationship added | related to 0031901 | ||||||||||||||||
2016-01-25 19:02 | caristu | Note Added: 0083596 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|