Openbravo Issue Tracking System - Modules
View Issue Details
0052615ModulesDistribution Order for Advanced Warehouse Operationspublic2023-05-31 07:342023-05-31 07:52
AtulOpenbravo 
Triage Omni WMS 
normalmajoralways
newopen 
5
 
 
0052615: When Confirm Stock Reservation is No in DO, Available Stock is not properly shown when there is reserved stock for product
When Confirm Stock Reservation is No in DO, Available Stock is not properly shown when there is reserved stock for product
- Make sure there is product with stock and some reserved quantity. For eg: Chinese Plum in Food001 Storage Bin Available stock is 150 and reserved quantity is 10.
   To have reserved quantity as 10 do the below:
   - Create a DO OTF in Front End, set the Storage Bin as Food001
   - Add product Chinese Plum and set Confirmed Quantity as 10
   - Do not confirm the DO, go back to main menu.

- Create a DO in Back Office.
- Set DO OTF flag as Yes and Confirm Stock Reservation flag as No.
- Set Storage Bin as Food001, Add above product in the DO Line.
- Realize that Available Stock is set as 150.

Expected Available Stock value in the DO Line is 140.
https://openbravo.atlassian.net/browse/RM-6667 [^]
diff --git a/src/org/openbravo/warehouse/advancedwarehouseoperations/distributionorders/mobile/processors/DistributionOrderEventsProcessor.java b/src/org/openbravo/warehouse/advancedwarehouseoperations/distributionorders/mobile/processors/DistributionOrderEventsProcessor.java
index 48a3d70..6fba8c6 100644
--- a/src/org/openbravo/warehouse/advancedwarehouseoperations/distributionorders/mobile/processors/DistributionOrderEventsProcessor.java
+++ b/src/org/openbravo/warehouse/advancedwarehouseoperations/distributionorders/mobile/processors/DistributionOrderEventsProcessor.java
@@ -90,7 +90,7 @@ public class DistributionOrderEventsProcessor extends JSONProcessSimple {
 
           if (dol == null) {
             if (!docIsDOOTFConfirmStockReservation) {
- reservedQty = BigDecimal.ZERO;
+ reservedQty = storageDetail != null ? storageDetail.getReservedQty() : null;
             } else {
               reservedQty = storageDetail != null
                   ? storageDetail.getReservedQty().compareTo(BigDecimal.ZERO) > 0
No tags attached.
related to defect 0052382 closed AtulOpenbravo Openbravo ERP Available stock is moving when doing a DOi 
Issue History
2023-05-31 07:34AtulOpenbravoNew Issue
2023-05-31 07:34AtulOpenbravoAssigned To => Triage Omni WMS
2023-05-31 07:35AtulOpenbravoRelationship addedrelated to 0052382
2023-05-31 07:45AtulOpenbravoSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=26163#r26163
2023-05-31 07:48AtulOpenbravoSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=26164#r26164
2023-05-31 07:52AtulOpenbravoProposed Solution updated

There are no notes attached to this issue.