Openbravo Issue Tracking System - Openbravo ERP | |||||||||||||||||||
View Issue Details | |||||||||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||||||||
0031404 | Openbravo ERP | A. Platform | public | 2015-11-09 10:38 | 2016-01-25 19:03 | ||||||||||||||
Reporter | inigosanchez | ||||||||||||||||||
Assigned To | caristu | ||||||||||||||||||
Priority | low | Severity | minor | Reproducibility | have not tried | ||||||||||||||
Status | closed | Resolution | no change required | ||||||||||||||||
Platform | OS | 5 | OS Version | ||||||||||||||||
Product Version | |||||||||||||||||||
Target Version | Fixed in Version | ||||||||||||||||||
Merge Request Status | |||||||||||||||||||
Review Assigned To | caristu | ||||||||||||||||||
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 | 0031404: setItemValue() function should be update "_textualValue" too | ||||||||||||||||||
Description | In order to simplify the way in which fields are recalculated using setItemValue() the function should update "_textualValue" value too. | ||||||||||||||||||
Steps To Reproduce | Create a callout in client side (as attached file): - Copy callout3 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. | ||||||||||||||||||
Proposed Solution | If it is added this line at the end of callout3 function (attached file) the callout works properly: form.setTextualValue('standardPrice', OB.Utilities.Number.OBPlainToOBMasked(lp.getValue(), lp.typeInstance.maskNumeric, lp.typeInstance.decSeparator, lp.typeInstance.groupSeparator, OB.Format.defaultGroupingSize), lp.typeInstance) This logic should be added in setItemValue() function. | ||||||||||||||||||
Additional Information | |||||||||||||||||||
Tags | No tags attached. | ||||||||||||||||||
Relationships |
| ||||||||||||||||||
Attached Files | callout3.txt (159) 2015-11-09 10:38 https://issues.openbravo.com/file_download.php?file_id=8702&type=bug | ||||||||||||||||||
Issue History | |||||||||||||||||||
Date Modified | Username | Field | Change | ||||||||||||||||
2015-11-09 10:38 | inigosanchez | New Issue | |||||||||||||||||
2015-11-09 10:38 | inigosanchez | Assigned To | => platform | ||||||||||||||||
2015-11-09 10:38 | inigosanchez | File Added: callout3.txt | |||||||||||||||||
2015-11-09 10:38 | inigosanchez | Modules | => Core | ||||||||||||||||
2015-11-09 10:38 | inigosanchez | Triggers an Emergency Pack | => No | ||||||||||||||||
2015-11-09 10:39 | inigosanchez | Relationship added | related to 0031189 | ||||||||||||||||
2016-01-19 11:10 | alostale | Relationship added | related to 0031901 | ||||||||||||||||
2016-01-25 19:02 | caristu | Assigned To | platform => caristu | ||||||||||||||||
2016-01-25 19:02 | caristu | Status | new => acknowledged | ||||||||||||||||
2016-01-25 19:02 | caristu | Status | acknowledged => scheduled | ||||||||||||||||
2016-01-25 19:03 | caristu | Review Assigned To | => caristu | ||||||||||||||||
2016-01-25 19:03 | caristu | Note Added: 0083597 | |||||||||||||||||
2016-01-25 19:03 | caristu | Status | scheduled => closed | ||||||||||||||||
2016-01-25 19:03 | caristu | Resolution | open => no change required | ||||||||||||||||
2016-01-25 19:03 | caristu | Note Edited: 0083597 | bug_revision_view_page.php?bugnote_id=0083597#r10762 |
Notes | |||||
|
|||||
|
|