Author: pranayp
Date: Sat May 21 07:40:16 2016
New Revision: 1744868
URL:
http://svn.apache.org/viewvc?rev=1744868&view=revLog:
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/release15.12/applications/product/script/org/ofbiz/shipment/receipt/ShipmentReceiptServices.xml
Modified: ofbiz/branches/release15.12/applications/product/script/org/ofbiz/shipment/receipt/ShipmentReceiptServices.xml
URL:
http://svn.apache.org/viewvc/ofbiz/branches/release15.12/applications/product/script/org/ofbiz/shipment/receipt/ShipmentReceiptServices.xml?rev=1744868&r1=1744867&r2=1744868&view=diff==============================================================================
--- ofbiz/branches/release15.12/applications/product/script/org/ofbiz/shipment/receipt/ShipmentReceiptServices.xml (original)
+++ ofbiz/branches/release15.12/applications/product/script/org/ofbiz/shipment/receipt/ShipmentReceiptServices.xml Sat May 21 07:40: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>