feat: affiliate sales partner referral code and coupon code

This commit is contained in:
ashish-greycube 2019-08-12 17:40:29 +05:30 committed by Rohit Waghchaure
parent 74dc3c99de
commit cf24191fe5

View File

@ -249,6 +249,9 @@ def get_pricing_rule_for_item(args, price_list_rate=0, doc=None):
if pricing_rule.mixed_conditions or pricing_rule.apply_rule_on_other:
continue
if pricing_rule.coupon_code_based==1 and args.coupon_code==None:
return item_details
if (not pricing_rule.validate_applied_rule and
pricing_rule.price_or_product_discount == "Price"):
apply_price_discount_pricing_rule(pricing_rule, item_details, args)