Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0050858Openbravo ERP04. Warehouse managementpublic2022-11-11 12:472023-05-10 14:13
XABIER_AGUADO 
AtulOpenbravo 
normalmajoralways
closedfixed 
5
 
 
Core
No
0050858: Wrong quantity after an Inventory Count for products with stock 0
If you add stock with inventory count, then the available stock quantity will be +1 than the real one and the reserved stock will be also KO.
Log in on AWO
Do a Distribution Order (DO)
Add two products with stock and one without
Go back, dont delete the DO
Do a count for the product you added previously without stock
Count, for example, 5 units and confirm
Re-open your DO
Now, the Available Stock Quantity for the product previously without stock is 6 instead 5 (its always counted amount +1)
FASH
related to defect 0050857 closed AtulOpenbravo Openbravo ERP AWO column "QTY" empty for products with stock 0 
related to defect 0051294 scheduled AtulOpenbravo Modules Reserved Qty in Storage Detail is set negative when reducing quantity in Ongoing DO Line 
png paaint.png (702,890) 2022-11-11 12:47
https://issues.openbravo.com/file_download.php?file_id=17810&type=bug
Issue History
2022-11-11 12:47XABIER_AGUADONew Issue
2022-11-11 12:47XABIER_AGUADOAssigned To => Triage Omni WMS
2022-11-11 12:47XABIER_AGUADOFile Added: paaint.png
2022-11-11 12:47XABIER_AGUADOModules => Core
2022-11-11 12:47XABIER_AGUADOTriggers an Emergency Pack => No
2022-11-11 12:47XABIER_AGUADOTag Attached: FASH
2022-11-14 12:48avicenteIssue cloned0050883
2022-12-20 12:19vmromanosAssigned ToTriage Omni WMS => AtulOpenbravo
2022-12-22 15:10AtulOpenbravoStatusnew => scheduled
2022-12-23 08:40AtulOpenbravoSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=25304#r25304
2022-12-26 13:27hgbotNote Added: 0145008
2022-12-28 10:48hgbotNote Added: 0145046
2023-01-04 07:02AtulOpenbravoNote Added: 0145142
2023-01-04 16:15migueldejuanaNote Deleted: 0145008
2023-01-04 18:08hgbotResolutionopen => fixed
2023-01-04 18:08hgbotStatusscheduled => closed
2023-01-04 18:08hgbotNote Added: 0145177
2023-01-04 18:08hgbotNote Added: 0145178
2023-01-05 08:44rafarodaRelationship addedrelated to 0050857
2023-05-04 10:36mtaalRelationship addedrelated to 0051294
2023-05-10 14:13hgbotNote Added: 0149565
2023-05-10 14:16AtulOpenbravoNote Deleted: 0149565

Notes
(0145046)
hgbot   
2022-12-28 10:48   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.warehouse.advancedwarehouseoperations.distributionorders/-/merge_requests/28 [^]
(0145142)
AtulOpenbravo   
2023-01-04 07:02   
Test Plan

- Log in on AWO.
- Create a Distribution Order (DO).
- Add two products with stock and one without stock.
- Go to back to main menu using Back button, don't delete the DO.
- Do a count for the product without stock that was added previously in the DO.
- Count, for example, 5 units and confirm it.
- Re-open your DO.
- Realize that Available Qty is correctly shown as 5 in the DO Line.
(0145177)
hgbot   
2023-01-04 18:08   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.warehouse.advancedwarehouseoperations.distributionorders [^]
Changeset: 4a9ebeb029636b3a5d5545f5b9037777cdd68457
Author: Atul Gaware <atul.gaware@openbravo.com>
Date: 04-01-2023 13:51:40
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.warehouse.advancedwarehouseoperations.distributionorders/-/commit/4a9ebeb029636b3a5d5545f5b9037777cdd68457 [^]

Fixes BUG-0050858: Wrong quantity after an Inventory Count
for products with stock 0

**In case DO Line for any product without stock is created,
and Stock is created later on, then when Storage Detail has
ReservedQuantity as ZERO, consider ReservedQuantity from
confirmed Stock Reservation linked to DO line when loading
draft DO lines as well as loading Product Detail Card in DO
Line.

---
M src/org/openbravo/warehouse/advancedwarehouseoperations/distributionorders/mobile/datasources/DistributionOrderInfoProvider.java
M src/org/openbravo/warehouse/advancedwarehouseoperations/distributionorders/mobile/processors/DistributionOrderEventsProcessor.java
---
(0145178)
hgbot   
2023-01-04 18:08   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.warehouse.advancedwarehouseoperations.distributionorders/-/merge_requests/28 [^]