svn commit: r1801300 - in /ofbiz/ofbiz-framework/trunk/applications: accounting/minilang/rate/ 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: r1801300 - in /ofbiz/ofbiz-framework/trunk/applications: accounting/minilang/rate/ product/src/main/java/org/apache/ofbiz/product/inventory/InventoryServices.java

diveshdutta
Author: diveshdutta
Date: Sat Jul  8 16:06:04 2017
New Revision: 1801300

URL: http://svn.apache.org/viewvc?rev=1801300&view=rev
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.

Added:
    ofbiz/ofbiz-framework/trunk/applications/accounting/minilang/rate/
      - copied from r1768234, ofbiz/trunk/applications/accounting/minilang/rate/
Modified:
    ofbiz/ofbiz-framework/trunk/applications/product/src/main/java/org/apache/ofbiz/product/inventory/InventoryServices.java

Modified: ofbiz/ofbiz-framework/trunk/applications/product/src/main/java/org/apache/ofbiz/product/inventory/InventoryServices.java
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/applications/product/src/main/java/org/apache/ofbiz/product/inventory/InventoryServices.java?rev=1801300&r1=1801299&r2=1801300&view=diff
==============================================================================
--- ofbiz/ofbiz-framework/trunk/applications/product/src/main/java/org/apache/ofbiz/product/inventory/InventoryServices.java (original)
+++ ofbiz/ofbiz-framework/trunk/applications/product/src/main/java/org/apache/ofbiz/product/inventory/InventoryServices.java Sat Jul  8 16:06:04 2017
@@ -134,9 +134,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 {