Openbravo Issue Tracking System - Retail Modules
View Issue Details
0041341Retail ModulesWeb POSpublic2019-07-12 09:532019-07-17 19:11
aaroncalero 
ranjith_qualiantech_com 
highmajoralways
closedfixed 
5
 
RR19Q4 
guilleaer
No
0041341: Customer Filter in Open Receipts selector assigns the customer to the receipt under specific circumstances
After a specific flow, the customer filter in the Open Receipts selector stops working and, instead of setting the customer in the filter, it assigns the customer directly to the ticket.
Login in webpos
*Working case:
Go to the menu > Open Receipt
Click on the filter selector and select Customer.
Click on Select filter; the customer selector will open.
Search for Arturo Montoro and select it. WebPOS will return to the Open Receipts selector and Arturo Montoro will be shown on the filter.
Close the Open Receipt selector.

*Broken case:
Refresh the WebPOS.
Click on the Customer button of the receipt.
Search for Carl Studson.
Click on the context menu, then View Details.
Click on Assign Customer.
Go to the menu > Open Receipt
Click on the filter selector and select Customer.
Click on Select filter; the customer selector will open.
Notice that the Carl Studson filter is preset. Search for Arturo Montoro and select it.
Instead of showing the Open Receipt selector with the customer filtered, Arturo Montoro will be assigned to the ticket.

The problem seems to be on setting the "target" component of the selector. During the "broken" case, the target is not correctly set to the order selector, and instead it is still pointing to the order.
Attached a patch with a possible solution that sets the the target of the selector regardless of how it is opened.
No tags attached.
diff Issue41341.diff (801) 2019-07-15 09:19
https://issues.openbravo.com/file_download.php?file_id=13125&type=bug
Issue History
2019-07-12 09:53aaroncaleroNew Issue
2019-07-12 09:53aaroncaleroAssigned To => Retail
2019-07-12 09:53aaroncaleroResolution time => 1564092000
2019-07-12 09:53aaroncaleroTriggers an Emergency Pack => No
2019-07-15 09:19aaroncaleroFile Added: Issue41341.diff
2019-07-15 09:22aaroncaleroProposed Solution updated
2019-07-15 10:10ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2019-07-15 10:10ranjith_qualiantech_comStatusnew => scheduled
2019-07-16 13:42hgbotCheckin
2019-07-16 13:42hgbotNote Added: 0113405
2019-07-16 13:42hgbotStatusscheduled => resolved
2019-07-16 13:42hgbotResolutionopen => fixed
2019-07-16 13:42hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/6a3173bcc5bd749adef7d4d0397e75e7db0c81b7 [^]
2019-07-17 19:11guilleaerReview Assigned To => guilleaer
2019-07-17 19:11guilleaerStatusresolved => closed
2019-07-17 19:11guilleaerFixed in Version => RR19Q4

Notes
(0113405)
hgbot   
2019-07-16 13:42   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 6a3173bcc5bd749adef7d4d0397e75e7db0c81b7
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Tue Jul 16 17:12:04 2019 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/6a3173bcc5bd749adef7d4d0397e75e7db0c81b7 [^]

Fixed issue 41341 : Business partner Selector popup should be opened with owner target

---
M web/org.openbravo.retail.posterminal/js/components/businesspartner_selector.js
---