Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0049527
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Mobile Warehouse operationsmajoralways2022-06-10 08:082022-07-04 08:56
Reporterkousalya_rView Statuspublic 
Assigned Toradhakrishnan 
PrioritynormalResolutionfixedFixed in VersionRR22Q4
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0049527: Negative stock when products are ungrouped

DescriptionStock goes to negative when products are ungrouped and when we have stocks in diff bin.
Steps To Reproduce1. 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 SolutionIn 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.
TagsNo tags attached.
Attached Filespng file icon Screenshot from 2022-06-10 11-29-14.png [^] (361,879 bytes) 2022-06-10 08:08
png file icon Screenshot from 2022-06-10 11-29-35.png [^] (341,896 bytes) 2022-06-10 08:09
png file icon Screenshot from 2022-06-10 11-29-23.png [^] (460,553 bytes) 2022-06-10 08:09

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0138593)
hgbot (developer)
2022-06-21 13:33

Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/829 [^]
(0138992)
hgbot (developer)
2022-07-04 08:54

Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/829 [^]
(0138993)
hgbot (developer)
2022-07-04 08:54

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: 99d654f0e49c3cffa72e87cfc3e993dde698a7c7
Author: Radhakrishnan Seeman <radhakrishnan@qualiantech.com>
Date: 04-07-2022 06:51:39
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/99d654f0e49c3cffa72e87cfc3e993dde698a7c7 [^]

Fixed ISSUE-49527:Added validation to consume same product in different bins

---
M src/org/openbravo/retail/posterminal/utility/ShipmentUtils.java
---

- 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


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker