Author: ashish
Date: Thu Apr 8 07:49:24 2010
New Revision: 931823
URL:
http://svn.apache.org/viewvc?rev=931823&view=revLog:
Minor fix. Existing service will create problem if we have created EFT account for party. So its good to filter the record for type "CREDIT_CARD" and then get the first one from the list.
Thanks Rishi for the patch!
Modified:
ofbiz/trunk/applications/order/script/org/ofbiz/order/order/OrderServices.xml
Modified: ofbiz/trunk/applications/order/script/org/ofbiz/order/order/OrderServices.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/script/org/ofbiz/order/order/OrderServices.xml?rev=931823&r1=931822&r2=931823&view=diff==============================================================================
--- ofbiz/trunk/applications/order/script/org/ofbiz/order/order/OrderServices.xml (original)
+++ ofbiz/trunk/applications/order/script/org/ofbiz/order/order/OrderServices.xml Thu Apr 8 07:49:24 2010
@@ -1158,6 +1158,7 @@ under the License.
<!-- call update Credit Card -->
<entity-and entity-name="PaymentMethod" list="paymentMethodList" filter-by-date="true">
<field-map field-name="partyId" from-field="partyId"/>
+ <field-map field-name="paymentMethodTypeId" value="CREDIT_CARD"/>
<order-by field-name="-fromDate"/>
</entity-and>
<first-from-list list="paymentMethodList" entry="paymentMethod"/>