Commit 25c73b5a by Nilu

S13099459 # Client - Incoming Issues (raised by Client) #Coupon problem

parent ab63f7e2
......@@ -46,7 +46,8 @@ public class ApplyCouponFP extends SaveFP
.andCouponCode(new EqualsFilter<>(hiringTeam.getCouponCode()))
.search(objTran);
if(coupon != null && coupon.getValid())
// only allowing coupons with percentage off
if(coupon != null && coupon.getValid() && coupon.getPercentOff() != null)
{
StripeUtils.applyCoupon(hiringTeam);
......
package performa.orm;
import java.io.*;
import java.util.*;
import oneit.appservices.config.*;
import oneit.logging.*;
import oneit.objstore.*;
import oneit.utils.*;
import performa.orm.types.*;
public class StripeCoupon extends BaseStripeCoupon
{
......@@ -25,5 +11,3 @@ public class StripeCoupon extends BaseStripeCoupon
// Do not add any code to this, always put it in initialiseNewObject
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment