svn commit: r1801304 - /ofbiz/branches/release16.11/applications/product/src/main/java/org/apache/ofbiz/product/inventory/InventoryServices.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1801304 - /ofbiz/branches/release16.11/applications/product/src/main/java/org/apache/ofbiz/product/inventory/InventoryServices.java

Deepak Dixit-5
Author: deepak
Date: Sat Jul  8 17:21:29 2017
New Revision: 1801304

URL: http://svn.apache.org/viewvc?rev=1801304&view=rev
Log:
Fixed:  Manual applied fix from jira issue(OFBIZ-9464)
Log:
Fixed:Accounting quantity transfer should not be zero while transferring inventory from one facility to another (OFBIZ-9464)
Thanks Vaibhav Jain for reporting this issue and providing the patch.

Modified:
    ofbiz/branches/release16.11/applications/product/src/main/java/org/apache/ofbiz/product/inventory/InventoryServices.java

Modified: ofbiz/branches/release16.11/applications/product/src/main/java/org/apache/ofbiz/product/inventory/InventoryServices.java
URL: http://svn.apache.org/viewvc/ofbiz/branches/release16.11/applications/product/src/main/java/org/apache/ofbiz/product/inventory/InventoryServices.java?rev=1801304&r1=1801303&r2=1801304&view=diff
==============================================================================
--- ofbiz/branches/release16.11/applications/product/src/main/java/org/apache/ofbiz/product/inventory/InventoryServices.java (original)
+++ ofbiz/branches/release16.11/applications/product/src/main/java/org/apache/ofbiz/product/inventory/InventoryServices.java Sat Jul  8 17:21:29 2017
@@ -133,9 +133,9 @@ public class InventoryServices {
                     results.put("inventoryItemId", newItem.get("inventoryItemId"));
 
                     // TODO: how do we get this here: "inventoryTransferId", inventoryTransferId
-                    Map<String, Object> createNewDetailMap = UtilMisc.toMap("availableToPromiseDiff", xferQty, "quantityOnHandDiff", xferQty,
+                    Map<String, Object> createNewDetailMap = UtilMisc.toMap("availableToPromiseDiff", xferQty, "quantityOnHandDiff", xferQty, "accountingQuantityDiff", xferQty,
                             "inventoryItemId", newItem.get("inventoryItemId"), "userLogin", userLogin);
-                    Map<String, Object> createUpdateDetailMap = UtilMisc.toMap("availableToPromiseDiff", negXferQty, "quantityOnHandDiff", negXferQty,
+                    Map<String, Object> createUpdateDetailMap = UtilMisc.toMap("availableToPromiseDiff", negXferQty, "quantityOnHandDiff", negXferQty,  "accountingQuantityDiff", negXferQty,
                             "inventoryItemId", inventoryItem.get("inventoryItemId"), "userLogin", userLogin);
 
                     try {