Author: apatel
Date: Tue Jul 14 07:54:02 2009
New Revision: 793810
URL:
http://svn.apache.org/viewvc?rev=793810&view=revLog:
Allow updating few more fields (comments, paymentRefNum, finAccountTransId, statusId) on Payment. This will enable linking Payments with financial accounts (e.g bank accounts) and many more other uses.
Thanks Sumit for the patch.
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=793810&r1=793809&r2=793810&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 Tue Jul 14 07:54:02 2009
@@ -89,7 +89,11 @@
<set-nonpk-fields value-field="newPayment" map="payment"/>
<set-nonpk-fields value-field="oldPayment" map="payment"/>
<set-nonpk-fields value-field="newPayment" map="parameters"/>
- <set field="newPayment.statusId" from-field="oldPayment.statusId"/>
+ <!-- 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"/>
<if-compare-field field="oldPayment" to-field="newPayment" operator="not-equals">
<log level="always" message="=========Old: ${oldPayment} ============New: ${newPayment}"></log>
<add-error>