diff --git a/erpnext/accounts/doctype/pricing_rule/pricing_rule.json b/erpnext/accounts/doctype/pricing_rule/pricing_rule.json index 7a5c6d7713b..c03796fcfe8 100644 --- a/erpnext/accounts/doctype/pricing_rule/pricing_rule.json +++ b/erpnext/accounts/doctype/pricing_rule/pricing_rule.json @@ -121,7 +121,7 @@ "in_list_view": 1, "in_standard_filter": 1, "label": "Apply On", - "options": "\nItem Code\nItem Group\nBrand\nTransaction", + "options": "Item Code\nItem Group\nBrand\nTransaction", "reqd": 1 }, { @@ -657,7 +657,7 @@ "icon": "fa fa-gift", "idx": 1, "links": [], - "modified": "2025-08-20 11:40:07.096854", + "modified": "2026-02-17 12:24:07.553505", "modified_by": "Administrator", "module": "Accounts", "name": "Pricing Rule", @@ -719,4 +719,4 @@ "sort_order": "DESC", "states": [], "title_field": "title" -} \ No newline at end of file +} diff --git a/erpnext/accounts/doctype/pricing_rule/pricing_rule.py b/erpnext/accounts/doctype/pricing_rule/pricing_rule.py index 21e5ad18d9b..14ec325bea2 100644 --- a/erpnext/accounts/doctype/pricing_rule/pricing_rule.py +++ b/erpnext/accounts/doctype/pricing_rule/pricing_rule.py @@ -45,7 +45,7 @@ class PricingRule(Document): apply_discount_on: DF.Literal["Grand Total", "Net Total"] apply_discount_on_rate: DF.Check apply_multiple_pricing_rules: DF.Check - apply_on: DF.Literal["", "Item Code", "Item Group", "Brand", "Transaction"] + apply_on: DF.Literal["Item Code", "Item Group", "Brand", "Transaction"] apply_recursion_over: DF.Float apply_rule_on_other: DF.Literal["", "Item Code", "Item Group", "Brand"] brands: DF.Table[PricingRuleBrand] diff --git a/erpnext/accounts/doctype/pricing_rule_brand/pricing_rule_brand.json b/erpnext/accounts/doctype/pricing_rule_brand/pricing_rule_brand.json index b631ba33c6e..12aa97f7247 100644 --- a/erpnext/accounts/doctype/pricing_rule_brand/pricing_rule_brand.json +++ b/erpnext/accounts/doctype/pricing_rule_brand/pricing_rule_brand.json @@ -20,7 +20,7 @@ "bold": 0, "collapsible": 0, "columns": 0, - "depends_on": "eval:parent.apply_on == 'Item Code'", + "depends_on": "eval:parent.apply_on == 'Brand'", "fieldname": "brand", "fieldtype": "Link", "hidden": 0, @@ -91,7 +91,7 @@ "issingle": 0, "istable": 1, "max_attachments": 0, - "modified": "2019-03-24 14:48:59.649168", + "modified": "2026-02-17 12:17:13.073587", "modified_by": "Administrator", "module": "Accounts", "name": "Pricing Rule Brand", @@ -107,4 +107,4 @@ "track_changes": 1, "track_seen": 0, "track_views": 0 -} \ No newline at end of file +} diff --git a/erpnext/accounts/doctype/pricing_rule_item_group/pricing_rule_item_group.json b/erpnext/accounts/doctype/pricing_rule_item_group/pricing_rule_item_group.json index 30027ba0e6a..9df9c3189ce 100644 --- a/erpnext/accounts/doctype/pricing_rule_item_group/pricing_rule_item_group.json +++ b/erpnext/accounts/doctype/pricing_rule_item_group/pricing_rule_item_group.json @@ -20,7 +20,7 @@ "bold": 0, "collapsible": 0, "columns": 0, - "depends_on": "eval:parent.apply_on == 'Item Code'", + "depends_on": "eval:parent.apply_on == 'Item Group'", "fieldname": "item_group", "fieldtype": "Link", "hidden": 0, @@ -91,7 +91,7 @@ "issingle": 0, "istable": 1, "max_attachments": 0, - "modified": "2019-03-24 14:48:59.649168", + "modified": "2026-02-17 12:16:57.778471", "modified_by": "Administrator", "module": "Accounts", "name": "Pricing Rule Item Group", @@ -107,4 +107,4 @@ "track_changes": 1, "track_seen": 0, "track_views": 0 -} \ No newline at end of file +}