Reverts part of r1645950, thanks to Scott who spotted it
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1646546 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -29,7 +29,6 @@ import javolution.util.FastList;
|
||||
import javolution.util.FastMap;
|
||||
|
||||
import org.ofbiz.base.util.Debug;
|
||||
import org.ofbiz.base.util.UtilDateTime;
|
||||
import org.ofbiz.base.util.UtilFormatOut;
|
||||
import org.ofbiz.base.util.UtilMisc;
|
||||
import org.ofbiz.base.util.UtilNumber;
|
||||
@@ -162,7 +161,7 @@ public class PaymentWorker {
|
||||
try {
|
||||
purpose = EntityQuery.use(delegator).from("PartyContactWithPurpose")
|
||||
.where("partyId", partyId, "contactMechPurposeTypeId", "PAYMENT_LOCATION")
|
||||
.orderBy("-purposeFromDate").filterByDate(UtilDateTime.nowTimestamp(), "contactFromDate", "contactThruDate", "purposeFromDate", "purposeThruDate")
|
||||
.orderBy("-purposeFromDate").filterByDate("contactFromDate", "contactThruDate", "purposeFromDate", "purposeThruDate")
|
||||
.queryFirst();
|
||||
} catch (GenericEntityException e) {
|
||||
Debug.logError(e, "Trouble getting PartyContactWithPurpose view entity list", module);
|
||||
|
||||
@@ -821,7 +821,7 @@ public class ContactMechServices {
|
||||
try {
|
||||
tempVal = EntityQuery.use(delegator).from("PartyContactWithPurpose")
|
||||
.where("partyId", partyId, "contactMechId", contactMechId, "contactMechPurposeTypeId", contactMechPurposeTypeId)
|
||||
.filterByDate(UtilDateTime.nowTimestamp(), "contactFromDate", "contactThruDate", "purposeFromDate", "purposeThruDate")
|
||||
.filterByDate("contactFromDate", "contactThruDate", "purposeFromDate", "purposeThruDate")
|
||||
.queryFirst();
|
||||
} catch (GenericEntityException e) {
|
||||
Debug.logWarning(e.getMessage(), module);
|
||||
@@ -881,7 +881,7 @@ public class ContactMechServices {
|
||||
try {
|
||||
tempVal = EntityQuery.use(delegator).from("PartyContactWithPurpose")
|
||||
.where("partyId", partyId, "contactMechId", contactMechId, "contactMechPurposeTypeId", contactMechPurposeTypeId)
|
||||
.filterByDate(UtilDateTime.nowTimestamp(), "contactFromDate", "contactThruDate", "purposeFromDate", "purposeThruDate")
|
||||
.filterByDate("contactFromDate", "contactThruDate", "purposeFromDate", "purposeThruDate")
|
||||
.queryFirst();
|
||||
} catch (GenericEntityException e) {
|
||||
Debug.logWarning(e.getMessage(), module);
|
||||
|
||||
+1
-2
@@ -29,7 +29,6 @@ import javolution.util.FastMap;
|
||||
|
||||
import org.ofbiz.base.util.Debug;
|
||||
import org.ofbiz.base.util.GeneralException;
|
||||
import org.ofbiz.base.util.UtilDateTime;
|
||||
import org.ofbiz.base.util.UtilGenerics;
|
||||
import org.ofbiz.base.util.UtilMisc;
|
||||
import org.ofbiz.base.util.UtilValidate;
|
||||
@@ -560,7 +559,7 @@ public class GoogleCheckoutHelper {
|
||||
// check to make sure the purpose doesn't already exist
|
||||
List<GenericValue> values = EntityQuery.use(delegator).from("PartyContactWithPurpose")
|
||||
.where("partyId", partyId, "contactMechId", contactMechId, "contactMechPurposeTypeId", contactMechPurposeTypeId)
|
||||
.filterByDate(UtilDateTime.nowTimestamp(), "contactFromDate", "contactThruDate", "purposeFromDate", "purposeThruDate")
|
||||
.filterByDate("contactFromDate", "contactThruDate", "purposeFromDate", "purposeThruDate")
|
||||
.queryList();
|
||||
|
||||
if (UtilValidate.isEmpty(values)) {
|
||||
|
||||
Reference in New Issue
Block a user