Openbravo Issue Tracking System - POS2
View Issue Details
0056897POS2POSpublic2024-10-25 01:272024-11-08 06:53
axelmercado 
ranjith_qualiantech_com 
highminoralways
closedfixed 
5
 
25Q1 
approved
OBPS
112350
No
0056897: Problem checking stock on an item marked as stocked = N
When we have configured the preferences "Web POS Check Lines Stock" or "Web POS Enable Stock Validation", if we try to add a product to an order and that product does not have stock, the preferences validate it anyway showing the popup that there is no stock of the product, when it should not.
In Livebuilds https://livebuilds.openbravo.com/context/retail_pos2_modules_pgsql/web/pos/?terminal=VBS-2 [^]
-In backoffice configure the preferences "Web POS Check Lines Stock" or "Web POS Enable Stock Validation" with value "Y".

-In POS2:
Add to an order a product which has configured the field "Stocked" = "N", for example "Gift Card 50€" and verify that it does the stock validation showing the popup informing that this product is out of stock, when it should not.
No tags attached.
Issue History
2024-10-25 01:27axelmercadoNew Issue
2024-10-25 01:27axelmercadoAssigned To => Retail
2024-10-25 01:27axelmercadoOBNetwork customer => OBPS
2024-10-25 01:27axelmercadoSupport ticket => 112350
2024-10-25 01:27axelmercadoTriggers an Emergency Pack => No
2024-10-25 10:29jorgewederagoAssigned ToRetail => jorgewederago
2024-10-25 10:29jorgewederagoStatusnew => acknowledged
2024-10-27 20:34ranjith_qualiantech_comAssigned Tojorgewederago => ranjith_qualiantech_com
2024-10-27 20:34ranjith_qualiantech_comStatusacknowledged => scheduled
2024-10-28 10:17hgbotMerge Request Status => open
2024-10-28 10:17hgbotNote Added: 0171008
2024-11-08 06:53hgbotMerge Request Statusopen => approved
2024-11-08 06:53hgbotNote Added: 0171662
2024-11-08 06:53hgbotResolutionopen => fixed
2024-11-08 06:53hgbotStatusscheduled => closed
2024-11-08 06:53hgbotFixed in Version => 25Q1
2024-11-08 06:53hgbotNote Added: 0171663

Notes
(0171008)
hgbot   
2024-10-28 10:17   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/3029 [^]
(0171662)
hgbot   
2024-11-08 06:53   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/3029 [^]
(0171663)
hgbot   
2024-11-08 06:53   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: 8d0b9e79cb93aac6ccd1ee702f34c12b107eef3a
Author: Ranjith S R <r.rangaraju@external.orisha.com>
Date: 07-11-2024 14:35:34
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/8d0b9e79cb93aac6ccd1ee702f34c12b107eef3a [^]

Fixed ISSUE-56897: Line Stock should not be validated when product is not stocked in backoffice

---
M web-jspack/org.openbravo.pos2/src/model/ticket/StockUtils.js
M web-jspack/org.openbravo.pos2/src/model/ticket/__test__/StockUtils.test.js
---