Openbravo Issue Tracking System - POS2
View Issue Details
0052845POS2POSpublic2023-06-26 09:502023-08-09 11:28
prakashmurugesan88 
prakashmurugesan88 
normalmajoralways
closedfixed 
5
 
23Q4 
No
0052845: Alert the user in POS when selling product with negative stock
There should be a popup warning the cashier about the stock level for the product when this one is being added to the ticket, in case the available quantity is lower that the ordered quantity.
This is a missing functionality in React which was available in Enyo.
The logic for the popup to work is the same as the one implemented in Enyo

Further details on this functionality are available in wiki.
http://wiki.openbravo.com/wiki/Retail:Web_POS_User_Guide#Restrict_Sale_Out-of-Stock [^]
https://docs.google.com/document/d/1pW6n-VFdPk51OharlCoo9TkpCoAj4rt3gABcIIVHo-U/edit?usp=sharing [^]
No tags attached.
Issue History
2023-06-26 09:50prakashmurugesan88New Issue
2023-06-26 09:50prakashmurugesan88Assigned To => prakashmurugesan88
2023-06-26 09:50prakashmurugesan88Triggers an Emergency Pack => No
2023-06-26 09:50prakashmurugesan88Statusnew => scheduled
2023-06-27 09:07hgbotNote Added: 0151663
2023-06-27 09:10hgbotNote Added: 0151664
2023-06-30 10:55hgbotNote Added: 0151946
2023-07-12 14:55hgbotNote Added: 0152407
2023-07-12 14:55hgbotResolutionopen => fixed
2023-07-12 14:55hgbotStatusscheduled => closed
2023-07-12 14:56hgbotFixed in Version => 23Q4
2023-07-12 14:56hgbotNote Added: 0152408
2023-07-12 14:56hgbotNote Added: 0152409
2023-07-12 14:56hgbotNote Added: 0152410
2023-07-12 14:56hgbotNote Added: 0152411
2023-07-12 14:56hgbotNote Added: 0152412
2023-07-12 14:56hgbotNote Added: 0152413
2023-07-12 14:56hgbotNote Added: 0152414
2023-08-09 11:28Mike34Note Added: 0153396

Notes
(0151663)
hgbot   
2023-06-27 09:07   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1926 [^]
(0151664)
hgbot   
2023-06-27 09:10   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1259 [^]
(0151946)
hgbot   
2023-06-30 10:55   
Merge request closed: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1259 [^]
(0152407)
hgbot   
2023-07-12 14:55   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1926 [^]
(0152408)
hgbot   
2023-07-12 14:56   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: cb641f4a68799b8b70b61bb8aeeb8fcfc9463f33
Author: Prakash M <prakash@qualiantech.com>
Date: 12-07-2023 12:55:01
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/cb641f4a68799b8b70b61bb8aeeb8fcfc9463f33 [^]

Fixes ISSUE-52845: [StockValidation] Added StockValidation on adding product to ticket
* And on moving to payment window

---
A web-jspack/org.openbravo.pos2/src/model/ticket/StockUtils.js
M src-db/database/sourcedata/AD_MESSAGE.xml
M web-jspack/org.openbravo.pos2/src/model/ticket/TicketExtension.js
M web-jspack/org.openbravo.pos2/src/model/ticket/actions/AddProductActionPreparation.js
M web-jspack/org.openbravo.pos2/src/model/user-interface/user-actions/SwitchToPayments.js
M web-jspack/org.openbravo.pos2/src/ob-init.js
---
(0152409)
hgbot   
2023-07-12 14:56   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: 94394199807c60cf36920ca7f9c3f42dc78f879e
Author: Prakash M <prakash@qualiantech.com>
Date: 12-07-2023 12:55:01
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/94394199807c60cf36920ca7f9c3f42dc78f879e [^]

Related to ISSUE-52845: [StockValidation] Added jest test for checkLineStock

---
A web-jspack/org.openbravo.pos2/src/model/ticket/__test__/StockUtils.test.js
---
(0152410)
hgbot   
2023-07-12 14:56   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: 830ba44f9729a7cdf0c1af5036a203c16c44ff0c
Author: Prakash M <prakash@qualiantech.com>
Date: 12-07-2023 12:55:01
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/830ba44f9729a7cdf0c1af5036a203c16c44ff0c [^]

Related to ISSUE-52845: [StockValidation] Added jest test for checkStock in AddProduct Action Preparation

---
M web-jspack/org.openbravo.pos2/src/model/ticket/__test__/AddProductActionPreparation.test.js
---
(0152411)
hgbot   
2023-07-12 14:56   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: 693c63d818dddfc1c684e720457c6f2417d5220b
Author: Prakash M <prakash@qualiantech.com>
Date: 12-07-2023 12:55:01
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/693c63d818dddfc1c684e720457c6f2417d5220b [^]

Related to ISSUE-52845: [StockValidation] Added jest test for checkStock in SwitchToPayments

---
A web-jspack/org.openbravo.pos2/src/model/user-interface/user-actions/__test__/SwitchToPayments.test.js
---
(0152412)
hgbot   
2023-07-12 14:56   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: 5981780d053e5415ceef7190275cd2311b4790aa
Author: Prakash M <prakash@qualiantech.com>
Date: 12-07-2023 12:55:01
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/5981780d053e5415ceef7190275cd2311b4790aa [^]

Related to ISSUE-52845: [StockValidation] Code Enhancement
* Changed callback to async await

---
M web-jspack/org.openbravo.pos2/src/model/ticket/StockUtils.js
M web-jspack/org.openbravo.pos2/src/model/ticket/actions/AddProductActionPreparation.js
M web-jspack/org.openbravo.pos2/src/model/user-interface/user-actions/SwitchToPayments.js
---
(0152413)
hgbot   
2023-07-12 14:56   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: c2732f96efcbd7a4c3d599f145c5d4d7a791278c
Author: Prakash M <prakash@qualiantech.com>
Date: 12-07-2023 12:55:01
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/c2732f96efcbd7a4c3d599f145c5d4d7a791278c [^]

Related to ISSUE-52845: [StockValidation] Fixes Jest Test

---
M web-jspack/org.openbravo.pos2/src/model/ticket/__test__/StockUtils.test.js
M web-jspack/org.openbravo.pos2/src/model/user-interface/user-actions/__test__/SwitchToPayments.test.js
---
(0152414)
hgbot   
2023-07-12 14:56   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: a13d6d920d08de9325a4ba377d063d4accf52b47
Author: Prakash M <prakash@qualiantech.com>
Date: 12-07-2023 12:55:01
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/a13d6d920d08de9325a4ba377d063d4accf52b47 [^]

Related to ISSUE-52845: [StockValidation] Added flag to validate product added through scanning
* Code Enhancement

---
M src-db/database/sourcedata/AD_MESSAGE.xml
M web-jspack/org.openbravo.pos2/src/model/ticket/StockUtils.js
M web-jspack/org.openbravo.pos2/src/services/scan/handlers/utils/addProduct.js
---
(0153396)
Mike34   
2023-08-09 11:28   
I can't find a pop-up about this https://dmvpracticetest.io/ [^] problem