Openbravo Issue Tracking System - Retail Modules
View Issue Details
0039473Retail ModulesWeb POSpublic2018-10-17 18:292018-12-11 17:13
lmonreal 
ranjith_qualiantech_com 
normalmajoralways
closedfixed 
5
 
 
migueldejuana
No
0039473: When clicking Cancel in the "Not enough stock" pop up the approval to delete line is displayed
When I select a product with no stock and I click cancel in the "not enough stock" pop up the "Web POS Delete Line Approval" is displayed. If I click on Cancel on the approval the product is added to ticket.

Conditions:
-Have a product with no stock
-Have Web POS Delete Line Approval preference configured

Conditions:
-Have a product with no stock
-Have Web POS Delete Line Approval preference configured

Steps:
1. Add product with no stock
2. Pop up about "Not enough stock" is displayed, click Cancel
3. Approval to delete line is displayed (?)
4. Click on Cancel
5. Product is added to ticket (?)
No tags attached.
Issue History
2018-10-17 18:29lmonrealNew Issue
2018-10-17 18:29lmonrealAssigned To => Retail
2018-10-17 18:29lmonrealTriggers an Emergency Pack => No
2018-11-19 11:34ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2018-11-19 11:34ranjith_qualiantech_comStatusnew => scheduled
2018-12-05 11:55hgbotCheckin
2018-12-05 11:55hgbotNote Added: 0108278
2018-12-06 11:06hgbotCheckin
2018-12-06 11:06hgbotNote Added: 0108312
2018-12-06 11:06hgbotStatusscheduled => resolved
2018-12-06 11:06hgbotResolutionopen => fixed
2018-12-06 11:06hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.stockvalidation/rev/ee9c61ae50429acc29daa726712fcbaece2205be [^]
2018-12-11 17:13migueldejuanaReview Assigned To => migueldejuana
2018-12-11 17:13migueldejuanaNote Added: 0108405
2018-12-11 17:13migueldejuanaStatusresolved => closed

Notes
(0108278)
hgbot   
2018-12-05 11:55   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 356104a79c002a291531005b992cf0e4580d7b74
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Wed Dec 05 16:24:48 2018 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/356104a79c002a291531005b992cf0e4580d7b74 [^]

Related to issue 39473 : Modified Order deleteLines to support delete lines without approval

* If line attribute "forceDeleteLine" is true, Approval flow should be prevented and line should be deleted.
* In Certain cases, lines are removed based on Certain Conditions like Stock Presents etc.
  For those cases, Approval is not needed to delete the line.
* Removed Approval 'OBPOS_approval.deleteLine' in AddLine Undo operation.
  Because approval logic is already added in deleteLinesFromOrder

---
M web/org.openbravo.retail.posterminal/js/model/order.js
---
(0108312)
hgbot   
2018-12-06 11:06   
Repository: erp/pmods/org.openbravo.retail.stockvalidation
Changeset: ee9c61ae50429acc29daa726712fcbaece2205be
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Thu Dec 06 15:36:03 2018 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.stockvalidation/rev/ee9c61ae50429acc29daa726712fcbaece2205be [^]

Fixed issue 39473 : Line should be deleted if stock is not available

* Line should be force deleted even approval presents if stock is not available

---
M web/org.openbravo.retail.stockvalidation/js/modals.js
---
(0108405)
migueldejuana   
2018-12-11 17:13   
Tested and reviewed