Author: surajk
Date: Sat May 25 06:23:31 2019
New Revision: 1859911
URL:
http://svn.apache.org/viewvc?rev=1859911&view=revLog:
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.
Modified:
ofbiz/ofbiz-framework/trunk/applications/product/groovyScripts/product/promo/ProductPromoCondServices.groovy
Modified: ofbiz/ofbiz-framework/trunk/applications/product/groovyScripts/product/promo/ProductPromoCondServices.groovy
URL:
http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/applications/product/groovyScripts/product/promo/ProductPromoCondServices.groovy?rev=1859911&r1=1859910&r2=1859911&view=diff==============================================================================
--- ofbiz/ofbiz-framework/trunk/applications/product/groovyScripts/product/promo/ProductPromoCondServices.groovy (original)
+++ ofbiz/ofbiz-framework/trunk/applications/product/groovyScripts/product/promo/ProductPromoCondServices.groovy Sat May 25 06:23:31 2019
@@ -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) {