Openbravo Issue Tracking System - POS2
View Issue Details
0057165POS2POSpublic2024-11-18 18:272024-11-18 18:27
gorka_gil 
Retail 
normalmajorhave not tried
newopen 
5
 
 
No
0057165: Multiple addProduct: check stock
When adding many products toguether in one shot (only one call to add product user action), the check stock it is not working accurately.

Right now only checks per product to add the qty to add and the qty of this product in the ticket lines.

But miss to check if this product it is added more times in this addProduct action
go to the pos
search for combo
add the winter combo
in the wax family
select 2 glide wax
finish the combo creation and click apply

the stock check for glide wax, will only take into account 1 glide wax, but we are adding 2
Review all the check stock logic to addapt to mutiple product addProduct.

Some places to review:

https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/blob/master/web-jspack/org.openbravo.pos2/src/model/ticket/actions/AddProductActionPreparation.js#L353 [^]

https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/blob/master/web/org.openbravo.retail.posterminal/app/model/business-object/ticket/actions/AddProduct.js#L908 [^]
No tags attached.
depends on design defect 0056501 scheduled sreehari AddProduct user action should get an array of products instead of one product 
Not all the children of this issue are yet resolved or closed.
Issue History
2024-11-18 18:27gorka_gilNew Issue
2024-11-18 18:27gorka_gilAssigned To => Retail
2024-11-18 18:27gorka_gilTriggers an Emergency Pack => No
2024-11-18 18:27gorka_gilRelationship addeddepends on 0056501

There are no notes attached to this issue.