Openbravo Issue Tracking System - New POS
View Issue Details
0046160New POSPOSpublic2021-03-26 11:432021-04-15 14:24
jmelin 
mtaal 
highmajoralways
closedfixed 
30Openbravo Appliance 14.04
 
 
No
0046160: JIRA 1515 - Stock level not updated correctly for menu component
If we create a menu with a component manage in stock and update the quantity of the menu, then the stock level is only decreased by 1

It should take into account that the quantity can't be modified to a value that will cause the stock to be <0
Create 1 menu on the POS with a component in stock
Modify quantity to 50
the number of reservation is 1 on the keymap

Pay the sales order
The stock level is only decreased by 1 instead of 50.

This can be confirmed by checking the stock window
Takeaway
png c9c6dd32-ce8b-4715-8350-d2c36c33b059.png (90,559) 2021-03-26 11:43
https://issues.openbravo.com/file_download.php?file_id=15464&type=bug
png

png 65427954-bafa-467d-a157-2b7b5c01627c.png (73,270) 2021-03-26 11:43
https://issues.openbravo.com/file_download.php?file_id=15465&type=bug
png

png 8855c2fc-0256-4b8d-9dc6-02f059406139.png (18,525) 2021-03-26 11:43
https://issues.openbravo.com/file_download.php?file_id=15466&type=bug
png
Issue History
2021-03-26 11:43jmelinNew Issue
2021-03-26 11:43jmelinAssigned To => Retail
2021-03-26 11:43jmelinFile Added: c9c6dd32-ce8b-4715-8350-d2c36c33b059.png
2021-03-26 11:43jmelinTriggers an Emergency Pack => No
2021-03-26 11:43jmelinAssigned ToRetail => mtaal
2021-03-26 11:43jmelinFile Added: 65427954-bafa-467d-a157-2b7b5c01627c.png
2021-03-26 11:43jmelinFile Added: 8855c2fc-0256-4b8d-9dc6-02f059406139.png
2021-03-26 12:06jmelinTag Attached: Takeaway
2021-03-29 11:56psanjuanRelationship addedrelated to 0045875
2021-03-29 12:05psanjuanRelationship deletedrelated to 0045875
2021-03-31 12:20mtaalStatusnew => scheduled
2021-04-04 00:58mtaalStatusscheduled => resolved
2021-04-04 00:58mtaalResolutionopen => fixed
2021-04-05 20:53mtaalNote Added: 0127092
2021-04-06 17:54jmelinNote Added: 0127114
2021-04-06 17:54jmelinStatusresolved => new
2021-04-06 17:54jmelinResolutionfixed => open
2021-04-06 21:42mtaalStatusnew => scheduled
2021-04-06 21:42mtaalStatusscheduled => resolved
2021-04-06 21:42mtaalResolutionopen => fixed
2021-04-15 14:24jmelinStatusresolved => closed

Notes
(0127092)
mtaal   
2021-04-05 20:53   
https://gitlab.com/obcustomers/AGAP/org.openbravo.stockserver/-/commit/0a032e936cdb840cbf19779728b0ba402c141edf [^]
(0127114)
jmelin   
2021-04-06 17:54   
it's possible to add more products than available in stock when modifying menu quantity

You should have a similar behavior as for a single product