Added assert statement to test the service getProductionRunCost

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@909992 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jacopo Cappellato
2010-02-14 08:54:58 +00:00
parent a1b37c0255
commit fa7eebb420
@@ -559,6 +559,16 @@ under the License.
</if-compare>
</iterate>
<clear-field field="serviceCtx"/>
<set field="serviceCtx.userLogin" from-field="userLogin"/>
<set field="serviceCtx.workEffortId" from-field="productionRunId"/>
<call-service service-name="getProductionRunCost" in-map-name="serviceCtx">
<result-to-field result-name="totalCost"/>
</call-service>
<assert>
<if-compare field="totalCost" operator="equals" value="135.67" type="BigDecimal"/>
</assert>
<set field="postedTotalAmount" value="0.0" type="BigDecimal"/>
<entity-and list="acctgTransList" entity-name="AcctgTrans">
<field-map field-name="acctgTransTypeId" value="INVENTORY"/>