Author: mor
Date: Fri Jun 13 01:16:03 2008
New Revision: 667413
URL:
http://svn.apache.org/viewvc?rev=667413&view=revLog:
small improvements in recently added test case for Inventory Receive
Modified:
ofbiz/trunk/applications/product/script/org/ofbiz/shipment/test/TestServices.xml
Modified: ofbiz/trunk/applications/product/script/org/ofbiz/shipment/test/TestServices.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/script/org/ofbiz/shipment/test/TestServices.xml?rev=667413&r1=667412&r2=667413&view=diff==============================================================================
--- ofbiz/trunk/applications/product/script/org/ofbiz/shipment/test/TestServices.xml (original)
+++ ofbiz/trunk/applications/product/script/org/ofbiz/shipment/test/TestServices.xml Fri Jun 13 01:16:03 2008
@@ -171,11 +171,7 @@
</call-service>
<entity-one entity-name="InventoryItem" value-name="inventoryItem"/>
- <entity-condition entity-name="InventoryItemDetail" list-name="inventoryItemDetails">
- <condition-expr field-name="inventoryItemId" env-name="inventoryItemId"/>
- <order-by field-name="-createdStamp"/>
- </entity-condition>
- <first-from-list list-name="inventoryItemDetails" entry-name="inventoryItemDetail"/>
+ <get-related value-name="inventoryItem" relation-name="InventoryItemDetail" list-name="inventoryItemDetails"/>
<entity-condition entity-name="ShipmentReceipt" list-name="shipmentReceipts">
<condition-expr field-name="inventoryItemId" env-name="inventoryItemId"/>
<order-by field-name="datetimeReceived"/>
@@ -183,7 +179,7 @@
<first-from-list list-name="shipmentReceipts" entry-name="shipmentReceipt"/>
<assert>
<not><if-empty field="inventoryItem"></if-empty></not>
- <not><if-empty field="inventoryItemDetail"></if-empty></not>
+ <not><if-empty field="inventoryItemDetails"></if-empty></not>
<not><if-empty field="shipmentReceipt"></if-empty></not>
<if-compare-field field="inventoryItem.productId" operator="equals" to-field="serviceCtx.productId"/>
<if-compare-field field="inventoryItem.facilityId" operator="equals" to-field="serviceCtx.facilityId"/>