svn commit: r1744869 - /ofbiz/branches/release14.12/applications/product/script/org/ofbiz/shipment/receipt/ShipmentReceiptServices.xml

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

svn commit: r1744869 - /ofbiz/branches/release14.12/applications/product/script/org/ofbiz/shipment/receipt/ShipmentReceiptServices.xml

pranayp
Author: pranayp
Date: Sat May 21 07:41:15 2016
New Revision: 1744869

URL: http://svn.apache.org/viewvc?rev=1744869&view=rev
Log:
Applied bug fix from trunk revision 1744867.
---------------------------------------------------------------------

[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/branches/release14.12/applications/product/script/org/ofbiz/shipment/receipt/ShipmentReceiptServices.xml

Modified: ofbiz/branches/release14.12/applications/product/script/org/ofbiz/shipment/receipt/ShipmentReceiptServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/branches/release14.12/applications/product/script/org/ofbiz/shipment/receipt/ShipmentReceiptServices.xml?rev=1744869&r1=1744868&r2=1744869&view=diff
==============================================================================
--- ofbiz/branches/release14.12/applications/product/script/org/ofbiz/shipment/receipt/ShipmentReceiptServices.xml (original)
+++ ofbiz/branches/release14.12/applications/product/script/org/ofbiz/shipment/receipt/ShipmentReceiptServices.xml Sat May 21 07:41:15 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>