svn commit: r792892 - /ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/payment/PaymentServices.xml

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r792892 - /ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/payment/PaymentServices.xml

ashish-18
Author: ashish
Date: Fri Jul 10 11:48:19 2009
New Revision: 792892

URL: http://svn.apache.org/viewvc?rev=792892&view=rev
Log:
As per Vikas wish I am committing this improved code.
Good catch Vikas, Thanks :-)

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=792892&r1=792891&r2=792892&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 11:48:19 2009
@@ -486,12 +486,7 @@
             <set field="createPaymentAndApplicationForPartyMap.partyId" from-field="partyId"/>
             <set field="createPaymentAndApplicationForPartyMap.invoices" from-field="invoices"/>
             <if-not-empty field="parameters.checkStartNumber">
-                <calculate field="parameters.checkStartNumber" type="Long">
-                    <calcop operator="add">
-                        <calcop operator="get" field="parameters.checkStartNumber"/>
-                        <number value="1"/>
-                    </calcop>
-            </calculate>
+                 <set field="parameters.checkStartNumber" value="${parameters.checkStartNumber + 1}" type="Long"/>
             </if-not-empty>
             <call-service service-name="createPaymentAndApplicationForParty" in-map-name="createPaymentAndApplicationForPartyMap">
                 <result-to-field result-name="paymentId" field="paymentId"/>