Openbravo Issue Tracking System - Retail Modules | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0032583 | Retail Modules | Web POS | public | 2016-04-04 14:37 | 2016-04-25 19:19 |
Reporter | marvintm | ||||
Assigned To | mario_castello | ||||
Priority | urgent | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | OS | 5 | OS Version | ||
Product Version | |||||
Target Version | Fixed in Version | RR16Q3 | |||
Merge Request Status | |||||
Review Assigned To | marvintm | ||||
OBNetwork customer | No | ||||
Support ticket | |||||
Regression level | |||||
Regression date | |||||
Regression introduced in release | |||||
Regression introduced by commit | |||||
Triggers an Emergency Pack | No | ||||
Summary | 0032583: Changing a customer in the Web POS can lead to unexpected changes in the business partner properties | ||||
Description | Due to the way the customer data is being managed by the Web POS, it is possible that editing a customer in the Web POS causes changes in business partner properties which are not show in the customer form. Specifically, all properties which are being loaded in the customer model will be reverted to their original value if a customer is edited in the Web POS after a change has been done in the backend, if the incremental refresh has not been triggered after the change in the backend, and before the change in the Web POS. | ||||
Steps To Reproduce | - Log in the Web POS. - Log in the backend in a separate browser. - Open the customer "VBS Customer" in the Business Partner window, in the backend. - Change the "Payment method" property, from "Cash" to "Wire transfer". Save. - Open the same customer in the Web POS. Click on the EDIT button to see the edit form. - Change any field (for example the name) and click on "Save". - Refresh the backend window. Verify that the name has changed (this is correct), but that the Payment Method column has returned to its original value, Cash (this is wrong). | ||||
Proposed Solution | The main issue here is that we are setting all properties of the business partner, regardless of whether they are being shown and are editable in the form, or not. In the backend class (CustomerLoader) we should only set the properties that were seen by the user, and are editable by him, in the form. This obviously only applies to the operation of editing an existing customer, when creating a new customer it should work as before. Therefore, the main idea would be set in the ChangedBusinessPartner model only the properties which correspond to fields in the Customer form. If this is done, then the CustomerLoader will only set those properties, and therefore the problem will no longer happen for non-visible properties. | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | ![]() https://issues.openbravo.com/file_download.php?file_id=9240&type=bug | ||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2016-04-04 14:37 | marvintm | New Issue | |||
2016-04-04 14:37 | marvintm | Assigned To | => Retail | ||
2016-04-04 14:37 | marvintm | OBNetwork customer | => No | ||
2016-04-04 14:37 | marvintm | Triggers an Emergency Pack | => No | ||
2016-04-05 08:42 | migueldejuana | Note Added: 0085427 | |||
2016-04-06 09:27 | migueldejuana | File Added: 32583Posterminal.diff | |||
2016-04-07 16:09 | mario_castello | Assigned To | Retail => mario_castello | ||
2016-04-07 16:09 | mario_castello | Status | new => scheduled | ||
2016-04-07 16:12 | hgbot | Checkin | |||
2016-04-07 16:12 | hgbot | Note Added: 0085494 | |||
2016-04-07 16:12 | hgbot | Status | scheduled => resolved | ||
2016-04-07 16:12 | hgbot | Resolution | open => fixed | ||
2016-04-07 16:12 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/2ac21f058f307ff8e4f00b5c904ea4f1b38b94e6 [^] | ||
2016-04-07 16:54 | migueldejuana | Note Added: 0085498 | |||
2016-04-07 22:44 | hgbot | Checkin | |||
2016-04-07 22:44 | hgbot | Note Added: 0085505 | |||
2016-04-25 19:19 | marvintm | Review Assigned To | => marvintm | ||
2016-04-25 19:19 | marvintm | Status | resolved => closed | ||
2016-04-25 19:19 | marvintm | Fixed in Version | => RR16Q3 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|