feat: affiliate sales partner referral code and coupon code
diff --git a/erpnext/accounts/doctype/pricing_rule/pricing_rule.py b/erpnext/accounts/doctype/pricing_rule/pricing_rule.py
index a94d127..1776275 100644
--- a/erpnext/accounts/doctype/pricing_rule/pricing_rule.py
+++ b/erpnext/accounts/doctype/pricing_rule/pricing_rule.py
@@ -249,6 +249,9 @@
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)