Author: lektran
Date: Sat Nov 14 07:39:56 2009
New Revision: 836135
URL:
http://svn.apache.org/viewvc?rev=836135&view=revLog:
Fix test case that wasn't being specific enough when looking up AcctgTransEntries for assertions
Modified:
ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/test/AutoAcctgTransTests.xml
Modified: ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/test/AutoAcctgTransTests.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/test/AutoAcctgTransTests.xml?rev=836135&r1=836134&r2=836135&view=diff==============================================================================
--- ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/test/AutoAcctgTransTests.xml (original)
+++ ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/test/AutoAcctgTransTests.xml Sat Nov 14 07:39:56 2009
@@ -231,9 +231,12 @@
<set field="serviceCtx.quantity" from-field="quantity"/>
<call-service service-name="issueOrderItemShipGrpInvResToShipment" in-map-name="serviceCtx"/>
- <entity-condition entity-name="AcctgTransEntry" list="acctgTransEntryList">
- <condition-expr field-name="productId" operator="equals" from-field="productId"/>
+ <entity-condition list="acctgTransList" entity-name="AcctgTrans">
+ <condition-expr field-name="shipmentId" from-field="shipmentId"/>
+ <order-by field-name="-postedDate"/>
</entity-condition>
+ <first-from-list entry="acctgTrans" list="acctgTransList"/>
+ <get-related list="acctgTransEntryList" relation-name="AcctgTransEntry" value-field="acctgTrans"/>
<assert><not><if-empty field="acctgTransEntryList"/></not></assert>
<iterate list="acctgTransEntryList" entry="acctgTransEntry">