You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ha...@apache.org on 2011/10/31 09:32:37 UTC
svn commit: r1195371 -
/ofbiz/branches/release11.04/framework/common/src/org/ofbiz/common/FindServices.java
Author: hansbak
Date: Mon Oct 31 08:32:37 2011
New Revision: 1195371
URL: http://svn.apache.org/viewvc?rev=1195371&view=rev
Log:
copied from trunk r1195354: find service did not work properly on the selection end date
Modified:
ofbiz/branches/release11.04/framework/common/src/org/ofbiz/common/FindServices.java
Modified: ofbiz/branches/release11.04/framework/common/src/org/ofbiz/common/FindServices.java
URL: http://svn.apache.org/viewvc/ofbiz/branches/release11.04/framework/common/src/org/ofbiz/common/FindServices.java?rev=1195371&r1=1195370&r2=1195371&view=diff
==============================================================================
--- ofbiz/branches/release11.04/framework/common/src/org/ofbiz/common/FindServices.java (original)
+++ ofbiz/branches/release11.04/framework/common/src/org/ofbiz/common/FindServices.java Mon Oct 31 08:32:37 2011
@@ -310,6 +310,10 @@ public class FindServices {
fieldValue = fieldValue + "%";
} else if ("opLessThan".equals(operation)) {
fieldOp = EntityOperator.LESS_THAN;
+ } else if ("upToDay".equals(operation)) {
+ fieldOp = EntityOperator.LESS_THAN;
+ } else if ("upThruDay".equals(operation)) {
+ fieldOp = EntityOperator.LESS_THAN_EQUAL_TO;
} else if (operation.equals("greaterThanFromDayStart")) {
String timeStampString = (String) fieldValue;
Object startValue = modelField.getModelEntity().convertFieldValue(modelField, dayStart(timeStampString, 0), delegator, context);