Author: ashish
Date: Fri Jul 10 13:58:37 2009
New Revision: 792955
URL:
http://svn.apache.org/viewvc?rev=792955&view=revLog:
Minor improvement in the code.
Thanks Chirag.
Modified:
ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/payment/PaymentServices.xml
Modified: ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/payment/PaymentServices.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/payment/PaymentServices.xml?rev=792955&r1=792954&r2=792955&view=diff==============================================================================
--- ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/payment/PaymentServices.xml (original)
+++ ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/payment/PaymentServices.xml Fri Jul 10 13:58:37 2009
@@ -435,11 +435,7 @@
<entity-one entity-name="Payment" value-field="payment">
<field-map field-name="paymentId" from-field="paymentId"/>
</entity-one>
- <calculate field="paymentRunningTotal">
- <calcop operator="add" field="paymentRunningTotal">
- <calcop operator="get" field="payment.amount"/>
- </calcop>
- </calculate>
+ <set field="paymentRunningTotal" value="${paymentRunningTotal + payment.amount}"/>
</iterate>
<field-to-result field="paymentRunningTotal"/>
</simple-method>
@@ -500,11 +496,7 @@
<result-to-field result-name="invoicePaymentInfoList"/>
</call-service>
<first-from-list list="invoicePaymentInfoList" entry="invoicePaymentInfo"/>
- <calculate field="paymentAmount">
- <calcop operator="add" field="paymentAmount">
- <calcop operator="get" field="invoicePaymentInfo.outstandingAmount"/>
- </calcop>
- </calculate>
+ <set field="paymentAmount" value="${paymentAmount + invoicePaymentInfo.outstandingAmount}"/>
</if-compare>
</iterate>
<if-compare field="paymentAmount" operator="greater" type="BigDecimal" value="0">