From 01b1b3843df936d9a09efec744d25697feef6222 Mon Sep 17 00:00:00 2001 From: Johannes Goderbauer <j.goderbauer@adito.de> Date: Tue, 11 Feb 2020 09:55:32 +0000 Subject: [PATCH] Merge branch '1050796_validityPeriod' into '2020.0' [Projekt: Entwicklung - Neon][TicketNr.: 1050796][Vertrieb: Preisliste:... See merge request xrm/basic!126 (cherry picked from commit 01d47326294490febc2ae71ff796675953cb8857) c2092f4c [Projekt: Entwicklung - Neon][TicketNr.: 1050796][Vertrieb: Preisliste:... --- process/Product_lib/process.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/process/Product_lib/process.js b/process/Product_lib/process.js index a41401aa4a..d49860b7ac 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() -- GitLab