svn commit: r795791 - /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: r795791 - /ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/payment/PaymentServices.xml

apatel-2
Author: apatel
Date: Mon Jul 20 12:14:52 2009
New Revision: 795791

URL: http://svn.apache.org/viewvc?rev=795791&view=rev
Log:
Set finAccountTransId and payRefNumber to null if passed.

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=795791&r1=795790&r2=795791&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 Mon Jul 20 12:14:52 2009
@@ -92,10 +92,9 @@
             <!-- fields :- comments, paymentRefNum, finAccountTransId, statusId can editable for Payment -->
             <set field="oldPayment.statusId" from-field="newPayment.statusId"/>
             <set field="oldPayment.comments" from-field="newPayment.commets"/>
-            <set field="oldPayment.paymentRefNum" from-field="newPayment.paymentRefNum"/>
-            <set field="oldPayment.finAccountTransId" from-field="newPayment.finAccountTransId"/>
+            <set field="oldPayment.paymentRefNum" from-field="newPayment.paymentRefNum" set-if-null="true"/>
+            <set field="oldPayment.finAccountTransId" from-field="newPayment.finAccountTransId" set-if-null="true"/>
             <if-compare-field field="oldPayment" to-field="newPayment" operator="not-equals">
-                <log level="always" message="=========Old: ${oldPayment} ============New: ${newPayment}"></log>
                 <add-error>
                     <fail-property resource="AccountingUiLabels" property="AccountingPSUpdateNotAllowedBecauseOfStatus"/>
                 </add-error>