You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by pr...@apache.org on 2016/05/21 07:37:16 UTC

svn commit: r1744867 - /ofbiz/trunk/applications/product/script/org/ofbiz/shipment/receipt/ShipmentReceiptServices.xml

Author: pranayp
Date: Sat May 21 07:37:16 2016
New Revision: 1744867

URL: http://svn.apache.org/viewvc?rev=1744867&view=rev
Log:
[OFBIZ-7094] Applied patch from the ticket. While creating inventory item of type "SERIALIZED_INV_ITEM" in "INV_ON_HOLD" status it gets created in "INV_AVAILABLE" status always. 

 Use Case: When user creates a serialized inventory item and the serial number is not provided, it should be created in "INV_ON_HOLD" status. To exclude this item from being count in ATP.
 As per the current implementation in service receiveInventoryProduct if status provided is "INV_ON_HOLD" for inventory item of type "SERIALIZED_INV_ITEM" it should not update to "INV_AVAILABLE" but it's not working as expected.
 
 Thanks Aditi Patidar for reporting the issue and providing the patch.

Modified:
    ofbiz/trunk/applications/product/script/org/ofbiz/shipment/receipt/ShipmentReceiptServices.xml

Modified: ofbiz/trunk/applications/product/script/org/ofbiz/shipment/receipt/ShipmentReceiptServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/script/org/ofbiz/shipment/receipt/ShipmentReceiptServices.xml?rev=1744867&r1=1744866&r2=1744867&view=diff
==============================================================================
--- ofbiz/trunk/applications/product/script/org/ofbiz/shipment/receipt/ShipmentReceiptServices.xml (original)
+++ ofbiz/trunk/applications/product/script/org/ofbiz/shipment/receipt/ShipmentReceiptServices.xml Sat May 21 07:37:16 2016
@@ -204,7 +204,9 @@ under the License.
                 </condition>
                 <then>
                     <!-- Retrieve the new inventoryItem -->
-                    <entity-one entity-name="InventoryItem" value-field="inventoryItem"/>
+                    <entity-one entity-name="InventoryItem" value-field="inventoryItem">
+                        <field-map field-name="inventoryItemId" from-field="currentInventoryItemId"/>
+                    </entity-one>
 
                     <!-- Don't reset the status if it's already set to INV_PROMISED or INV_ON_HOLD -->
                     <if>