Fixed: Issue in order history promotion.
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.
@@ -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) {
