Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0052292
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Web POSminoralways2023-04-27 21:262023-05-05 07:57
Reporterjose12LView Statuspublic 
Assigned Toranjith_qualiantech_com 
PriorityhighResolutionduplicateFixed in Version
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Versionpi
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Tomarvintm
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0052292: Malfunction in POS Menu button "Cancel this Order"

DescriptionIn 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 ReproduceReceipts 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 SolutionIn 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');
TagsNo tags attached.
Attached Files? file icon menu.js [^] (28,813 bytes) 2023-04-27 21:26

- Relationships Relation Graph ] Dependency Graph ]
duplicate of defect 0051185 closedranjith_qualiantech_com Cancel Order option was showing for paid delivered order 

-  Notes
(0149314)
ranjith_qualiantech_com (developer)
2023-05-05 07:16

Fixed in issue https://issues.openbravo.com/view.php?id=51185 [^]

- 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 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


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker