You need to sign in to do that
Don't have an account?
Amol Pracheta
public class ApplyDiscount{
public static void insertdiscount(List<opportunity> opplist){
for(Opportunity oa: opplist){
if(oa.IsDiscountApplied__c != True)
{ oa.Amount= oa.Amount - oa.Amount*(0.1);
oa.IsDiscountApplied__c=True;
}
}
}
}
I want test class on below class.
public class ApplyDiscount{
public static void insertdiscount(List<opportunity> opplist){
for(Opportunity oa: opplist){
if(oa.IsDiscountApplied__c != True)
{ oa.Amount= oa.Amount - oa.Amount*(0.1);
oa.IsDiscountApplied__c=True;
}
}
}
}
Can you please tell me how I can post a question on this website?
I am not able to find it please help me.
Thank You
Try Below Test Class Please Mark It As Best Answer If It Helps
Thank You!
I hope you find the above solution helpful. If it does, please mark it as the Best Answer to help others too.
Thanks and Regards,
Suraj Tripathi