Fix in pricing rule patch
diff --git a/erpnext/patches/v4_0/customer_discount_to_pricing_rule.py b/erpnext/patches/v4_0/customer_discount_to_pricing_rule.py
index fa35898..bd27174 100644
--- a/erpnext/patches/v4_0/customer_discount_to_pricing_rule.py
+++ b/erpnext/patches/v4_0/customer_discount_to_pricing_rule.py
@@ -24,7 +24,8 @@
 				"applicable_for": "Customer",
 				"customer": d.parent,
 				"price_or_discount": "Discount Percentage",
-				"discount_percentage": d.discount
+				"discount_percentage": d.discount,
+				"selling": 1
 			}).insert()
 
 	frappe.db.auto_commit_on_many_writes = False