From 9b9cdb650e0ff35df5bbcee06cf39afa8fe3a9d4 Mon Sep 17 00:00:00 2001 From: Suraj Khurana Date: Sat, 25 May 2019 06:26:30 +0000 Subject: [PATCH] Applied fix from trunk for revision: 1859911 === Fixed: Issue in order history promotion. (OFBIZ-10847) Issue: According to the promotion customer should spend 000 in any 12 months to avail 5% discount. The system is providing the discount even if the customer is not logged in. Thanks Lalit Dashora for reporting the issue and providing the patch. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/branches/release18.12@1859912 13f79535-47bb-0310-9956-ffa450edef68 --- .../groovyScripts/product/promo/ProductPromoCondServices.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applications/product/groovyScripts/product/promo/ProductPromoCondServices.groovy b/applications/product/groovyScripts/product/promo/ProductPromoCondServices.groovy index 6d73d73109..2e3e681aca 100644 --- a/applications/product/groovyScripts/product/promo/ProductPromoCondServices.groovy +++ b/applications/product/groovyScripts/product/promo/ProductPromoCondServices.groovy @@ -384,7 +384,7 @@ def productOrderHist() { String partyId = cart.getPartyId() GenericValue userLogin = cart.getUserLogin() Map result = success() - int compareBase = 1 + int compareBase = -1 result.operatorEnumId = "PPC_GTE" if (partyId && userLogin && condValue) {