Author: apatel
Date: Mon Sep 22 14:51:43 2014
New Revision: 1626797
URL:
http://svn.apache.org/r1626797Log:
Use purposeFromDate instead of formDate.
Modified:
ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/payment/PaymentWorker.java
Modified: ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/payment/PaymentWorker.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/payment/PaymentWorker.java?rev=1626797&r1=1626796&r2=1626797&view=diff==============================================================================
--- ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/payment/PaymentWorker.java (original)
+++ ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/payment/PaymentWorker.java Mon Sep 22 14:51:43 2014
@@ -160,7 +160,7 @@ public class PaymentWorker {
try {
paymentAddresses = delegator.findByAnd("PartyContactWithPurpose",
UtilMisc.toMap("partyId", partyId, "contactMechPurposeTypeId", "PAYMENT_LOCATION"),
- UtilMisc.toList("-fromDate"), false);
+ UtilMisc.toList("-purposeFromDate"), false);
paymentAddresses = EntityUtil.filterByDate(paymentAddresses, null, "contactFromDate", "contactThruDate", true);
paymentAddresses = EntityUtil.filterByDate(paymentAddresses, null, "purposeFromDate", "purposeThruDate", true);
} catch (GenericEntityException e) {