diff --git a/process/Product_lib/process.js b/process/Product_lib/process.js index a41401aa4a63286c05a0fca8c5c9a9cce8516520..d49860b7ac46e5f1f8d093310260d8406de9b0e0 100644 --- a/process/Product_lib/process.js +++ b/process/Product_lib/process.js @@ -191,7 +191,7 @@ ProductUtils.getProductDetails = function(pid, priceListFilter, additionalProduc .and(["PRODUCTPRICE", "CURRENCY", "validPP"], priceListFilter.currency) .and(["PRODUCTPRICE", "VALID_FROM", "validPP"], datetime.date().toString(), SqlBuilder.LESS_OR_EQUAL()) .and(newWhere() - .or(["PRODUCTPRICE", "VALID_TO", "validPP"], datetime.date().toString(), SqlBuilder.GREATER_OR_EQUAL()) + .or(["PRODUCTPRICE", "VALID_TO", "validPP"], datetime.today().toString(), SqlBuilder.GREATER_OR_EQUAL()) .or("validPP.VALID_TO is null")) .and(["PRODUCTPRICE", "FROMQUANTITY", "validPP"], priceListFilter.quantity, SqlBuilder.LESS_OR_EQUAL()) .and(newWhere()