Openbravo Issue Tracking System - Retail Modules | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0049527 | Retail Modules | Mobile Warehouse operations | public | 2022-06-10 08:08 | 2022-07-04 08:56 |
Reporter | kousalya_r | ||||
Assigned To | radhakrishnan | ||||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | OS | 5 | OS Version | ||
Product Version | |||||
Target Version | Fixed in Version | RR22Q4 | |||
Merge Request Status | |||||
Review Assigned To | |||||
OBNetwork customer | |||||
Support ticket | |||||
Regression level | |||||
Regression date | |||||
Regression introduced in release | |||||
Regression introduced by commit | |||||
Triggers an Emergency Pack | No | ||||
Summary | 0049527: Negative stock when products are ungrouped | ||||
Description | Stock goes to negative when products are ungrouped and when we have stocks in diff bin. | ||||
Steps To Reproduce | 1. In product window uncheck 'Grouped product' checkbox 2. In a warehouse put a stock one unit in one bin and one more unit in another bin. 3. In POS do a sales for 2units. 4. Now check in Product window - Stock tab the product goes to negative stock for a bin which has priority. The customer shipment takes place in single bin but it should happened from both bins. | ||||
Proposed Solution | In ShipmentUtils.java when the product is grouped we have single orderline for a product and the for loop checks one time and StockProposed table returns both bin and in while loop it fetches both bins In case of ungrouped product we have two orderlines and for loop checks two times and StockProposed criteria query run again so in while loop it always fetches first bin and it goes to negative stock. Proposed soln. might be check the stock if stock not present break a loop and get next bin. | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | Screenshot from 2022-06-10 11-29-14.png (361,879) 2022-06-10 08:08 https://issues.openbravo.com/file_download.php?file_id=17143&type=bug Screenshot from 2022-06-10 11-29-35.png (341,896) 2022-06-10 08:09 https://issues.openbravo.com/file_download.php?file_id=17144&type=bug Screenshot from 2022-06-10 11-29-23.png (460,553) 2022-06-10 08:09 https://issues.openbravo.com/file_download.php?file_id=17145&type=bug | ||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2022-06-10 08:08 | kousalya_r | New Issue | |||
2022-06-10 08:08 | kousalya_r | Assigned To | => Retail | ||
2022-06-10 08:08 | kousalya_r | File Added: Screenshot from 2022-06-10 11-29-14.png | |||
2022-06-10 08:08 | kousalya_r | Triggers an Emergency Pack | => No | ||
2022-06-10 08:09 | kousalya_r | File Added: Screenshot from 2022-06-10 11-29-35.png | |||
2022-06-10 08:09 | kousalya_r | File Added: Screenshot from 2022-06-10 11-29-23.png | |||
2022-06-14 15:45 | radhakrishnan | Assigned To | Retail => radhakrishnan | ||
2022-06-14 15:45 | radhakrishnan | Status | new => scheduled | ||
2022-06-21 13:33 | hgbot | Note Added: 0138593 | |||
2022-07-04 08:54 | hgbot | Resolution | open => fixed | ||
2022-07-04 08:54 | hgbot | Status | scheduled => resolved | ||
2022-07-04 08:54 | hgbot | Note Added: 0138992 | |||
2022-07-04 08:54 | hgbot | Fixed in Version | => RR22Q4 | ||
2022-07-04 08:54 | hgbot | Note Added: 0138993 | |||
2022-07-04 08:56 | aaroncalero | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|