Openbravo Issue Tracking System - Retail Modules | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0041448 | Retail Modules | Web POS | public | 2019-07-24 16:31 | 2019-07-25 16:45 | |||||||
Reporter | aaroncalero | |||||||||||
Assigned To | ranjith_qualiantech_com | |||||||||||
Priority | urgent | Severity | major | Reproducibility | have not tried | |||||||
Status | closed | Resolution | fixed | |||||||||
Platform | OS | 5 | OS Version | |||||||||
Product Version | ||||||||||||
Target Version | Fixed in Version | RR19Q4 | ||||||||||
Merge Request Status | ||||||||||||
Review Assigned To | adrianromero | |||||||||||
OBNetwork customer | Gold | |||||||||||
Support ticket | ||||||||||||
Regression level | ||||||||||||
Regression date | ||||||||||||
Regression introduced in release | ||||||||||||
Regression introduced by commit | ||||||||||||
Triggers an Emergency Pack | No | |||||||||||
Summary | 0041448: Receipt is not loaded correctly in WebPOS when one of the addresses is not active | |||||||||||
Description | Receipt is not loaded correctly in WebPOS when one of the addresses is not active. Some lines are not loaded at all, changing the total amount of the ticket loaded in webpos. | |||||||||||
Steps To Reproduce | Log in backend. Go to the Preference window and configure the following preferences: * 'Enable Remote for Product' with value Y * 'Enable Remote for Customer' with value Y Log in WebPOS Search for the customer Carl Studson Add a new address for the customer. Create a new ticket Assign the customer Carl Studson Assing one of the addresses for shipping and the other for invoicing. Add three different products to the ticket. Complete the receipt. Log in backend, go to the Business Partner window, find Carl Studson and deactivate the shipping address used in the ticket. Go back to WebPOS and try to load the ticket again. Randomly one or two lines won't load, and the ticket total amount will change. | |||||||||||
Proposed Solution | The problem seems to be on the newPaidReceipt function [1] If at least one of the locations is not available in Web POS (i.e. because it was deactivated) the code calls loadBusinesPartner and in its callback it is calling locationForBpartner, which eventually calls loadProducts, which adds the lines to the ticket. At the same time, loadBusinesPartner executes most of the newPaidReceipt code again when it finishes, which causes duplicated calls to locationForBpartner (and finally to loadProducts) [1] https://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/file/tip/web/org.openbravo.retail.posterminal/js/model/order.js#l10071 [^] | |||||||||||
Additional Information | ||||||||||||
Tags | No tags attached. | |||||||||||
Relationships |
| |||||||||||
Attached Files | ![]() https://issues.openbravo.com/file_download.php?file_id=13174&type=bug | |||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2019-07-24 16:31 | aaroncalero | New Issue | ||||||||||
2019-07-24 16:31 | aaroncalero | Assigned To | => Retail | |||||||||
2019-07-24 16:31 | aaroncalero | OBNetwork customer | => Gold | |||||||||
2019-07-24 16:31 | aaroncalero | Resolution time | => 1565128800 | |||||||||
2019-07-24 16:31 | aaroncalero | Triggers an Emergency Pack | => No | |||||||||
2019-07-24 16:35 | aaroncalero | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=19191#r19191 | |||||||||
2019-07-24 16:43 | aaroncalero | Proposed Solution updated | ||||||||||
2019-07-24 16:49 | aaroncalero | Description Updated | bug_revision_view_page.php?rev_id=19193#r19193 | |||||||||
2019-07-25 08:38 | ranjith_qualiantech_com | Assigned To | Retail => ranjith_qualiantech_com | |||||||||
2019-07-25 09:12 | ranjith_qualiantech_com | File Added: issue 41448 source posterminal.patch | ||||||||||
2019-07-25 09:35 | ranjith_qualiantech_com | Status | new => scheduled | |||||||||
2019-07-25 14:34 | hgbot | Checkin | ||||||||||
2019-07-25 14:34 | hgbot | Note Added: 0113647 | ||||||||||
2019-07-25 14:34 | hgbot | Status | scheduled => resolved | |||||||||
2019-07-25 14:34 | hgbot | Resolution | open => fixed | |||||||||
2019-07-25 14:34 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/c8ccf50bc538a92d5a7303fa394555bff3abed0f [^] | |||||||||
2019-07-25 16:45 | adrianromero | Review Assigned To | => adrianromero | |||||||||
2019-07-25 16:45 | adrianromero | Note Added: 0113649 | ||||||||||
2019-07-25 16:45 | adrianromero | Status | resolved => closed | |||||||||
2019-07-25 16:45 | adrianromero | Fixed in Version | => RR19Q4 | |||||||||
2019-07-31 17:32 | guillermogil | Relationship added | related to 0041513 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|