Openbravo Issue Tracking System - Retail Modules
View Issue Details
0052292Retail ModulesWeb POSpublic2023-04-27 21:262023-05-05 07:57
jose12L 
ranjith_qualiantech_com 
highminoralways
closedduplicate 
5
 
pi 
marvintm
Gold
No
0052292: Malfunction in POS Menu button "Cancel this Order"
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.
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.
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');
No tags attached.
duplicate of defect 0051185 closed ranjith_qualiantech_com Cancel Order option was showing for paid delivered order 
? menu.js (28,813) 2023-04-27 21:26
https://issues.openbravo.com/file_download.php?file_id=18466&type=bug
Issue History
2023-04-27 21:26jose12LNew Issue
2023-04-27 21:26jose12LAssigned To => Retail
2023-04-27 21:26jose12LFile Added: menu.js
2023-04-27 21:26jose12LOBNetwork customer => Gold
2023-04-27 21:26jose12LTriggers an Emergency Pack => No
2023-05-03 07:28ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2023-05-03 08:37ranjith_qualiantech_comRelationship addedrelated to 0051185
2023-05-03 11:38ranjith_qualiantech_comStatusnew => scheduled
2023-05-05 07:16ranjith_qualiantech_comNote Added: 0149314
2023-05-05 07:16ranjith_qualiantech_comStatusscheduled => resolved
2023-05-05 07:16ranjith_qualiantech_comResolutionopen => fixed
2023-05-05 07:57marvintmStatusresolved => new
2023-05-05 07:57marvintmResolutionfixed => open
2023-05-05 07:57marvintmReview Assigned To => marvintm
2023-05-05 07:57marvintmRelationship replacedduplicate of 0051185
2023-05-05 07:57marvintmStatusnew => closed
2023-05-05 07:57marvintmResolutionopen => duplicate

Notes
(0149314)
ranjith_qualiantech_com   
2023-05-05 07:16   
Fixed in issue https://issues.openbravo.com/view.php?id=51185 [^]