Openbravo Issue Tracking System - Retail Modules | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0052292 | Retail Modules | Web POS | public | 2023-04-27 21:26 | 2023-05-05 07:57 | |||||||
Reporter | jose12L | |||||||||||
Assigned To | ranjith_qualiantech_com | |||||||||||
Priority | high | Severity | minor | Reproducibility | always | |||||||
Status | closed | Resolution | duplicate | |||||||||
Platform | OS | 5 | OS Version | |||||||||
Product Version | ||||||||||||
Target Version | pi | Fixed in Version | ||||||||||
Merge Request Status | ||||||||||||
Review Assigned To | marvintm | |||||||||||
OBNetwork customer | Gold | |||||||||||
Support ticket | ||||||||||||
Regression level | ||||||||||||
Regression date | ||||||||||||
Regression introduced in release | ||||||||||||
Regression introduced by commit | ||||||||||||
Triggers an Emergency Pack | No | |||||||||||
Summary | 0052292: Malfunction in POS Menu button "Cancel this Order" | |||||||||||
Description | In Web POS, when receipts are opened from the Customers details/related documents, the display logic of the "Cancel This Order" button does not work ok. Neither for multiple selections nor for single ones. Orders receipts from 100% delivered orders opened from here shows in the menu the "Cancel This Order" button. Also, when selecting two different orders, one 100% delivered and the other 0% delivered: if the 100% delivered one is the oldest then the button displays for each receipt. On the other hand when the oldest order is the 0% delivered, the button is not shown. | |||||||||||
Steps To Reproduce | Receipts from orders/layaways/quotations from any customer can be used, or created for being tested in test environment. First go to costumer button on web POS and select a customer with a fiew related receipts, or create some for the test. After select the customer click on the customer button and in the details(...) click and select "Related documents" Then from the list select a receipt from an order or layaway 0% delivered and one 100% delivered. Try alternate wich one is older than the other (100% delivered vs 0% deivered) so both behaviors could be visible. when selecting layaway orders and quotations, the issue was not visible, nor when seleting regular orders and quotations. | |||||||||||
Proposed Solution | In a customized version from 20Q1 a workaround implements both of this fixes(see attached file menu.js) Check on file menu.js (openbravo/modules/org.openbravo.retail.posterminal/web/org.openbravo.retail.posterminal/js/components/menu.js), Inside: enyo.kind({ name: 'OB.UI.MenuCancelLayaway', (...) on the init: function(model){...} 1 - add the parameter (change:documentNo) to the receipt.onchange(). receipt.on( 'change:isLayaway change:isPaid change:orderType change:documentType ', function(model) { this.updateLabel(model); this.displayLogic(); }, this ); 2 - Also in the displayLogic: funtion() when asigning a value to the variable "receipt" so display logic will use the current loaded order in orderList model if it's exists or the model order if it's not. receipt = OB.MobileApp.model.orderList.current || this.model.get('order'); | |||||||||||
Additional Information | ||||||||||||
Tags | No tags attached. | |||||||||||
Relationships |
| |||||||||||
Attached Files | ![]() https://issues.openbravo.com/file_download.php?file_id=18466&type=bug | |||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2023-04-27 21:26 | jose12L | New Issue | ||||||||||
2023-04-27 21:26 | jose12L | Assigned To | => Retail | |||||||||
2023-04-27 21:26 | jose12L | File Added: menu.js | ||||||||||
2023-04-27 21:26 | jose12L | OBNetwork customer | => Gold | |||||||||
2023-04-27 21:26 | jose12L | Triggers an Emergency Pack | => No | |||||||||
2023-05-03 07:28 | ranjith_qualiantech_com | Assigned To | Retail => ranjith_qualiantech_com | |||||||||
2023-05-03 08:37 | ranjith_qualiantech_com | Relationship added | related to 0051185 | |||||||||
2023-05-03 11:38 | ranjith_qualiantech_com | Status | new => scheduled | |||||||||
2023-05-05 07:16 | ranjith_qualiantech_com | Note Added: 0149314 | ||||||||||
2023-05-05 07:16 | ranjith_qualiantech_com | Status | scheduled => resolved | |||||||||
2023-05-05 07:16 | ranjith_qualiantech_com | Resolution | open => fixed | |||||||||
2023-05-05 07:57 | marvintm | Status | resolved => new | |||||||||
2023-05-05 07:57 | marvintm | Resolution | fixed => open | |||||||||
2023-05-05 07:57 | marvintm | Review Assigned To | => marvintm | |||||||||
2023-05-05 07:57 | marvintm | Relationship replaced | duplicate of 0051185 | |||||||||
2023-05-05 07:57 | marvintm | Status | new => closed | |||||||||
2023-05-05 07:57 | marvintm | Resolution | open => duplicate |
Notes | |||||
|
|||||
|
|