From 699d42b26c77166dc11d1d5e499f1c5f51d447fa Mon Sep 17 00:00:00 2001 From: Navin-S-R Date: Wed, 20 Aug 2025 11:56:13 +0530 Subject: [PATCH] fix: hide is_cumulative for apply_on is set to Transaction --- erpnext/accounts/doctype/pricing_rule/pricing_rule.json | 3 ++- .../doctype/promotional_scheme/promotional_scheme.json | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/erpnext/accounts/doctype/pricing_rule/pricing_rule.json b/erpnext/accounts/doctype/pricing_rule/pricing_rule.json index 31b0f411681..bc8c3280412 100644 --- a/erpnext/accounts/doctype/pricing_rule/pricing_rule.json +++ b/erpnext/accounts/doctype/pricing_rule/pricing_rule.json @@ -174,6 +174,7 @@ }, { "default": "0", + "depends_on": "eval:doc.apply_on != 'Transaction'", "fieldname": "is_cumulative", "fieldtype": "Check", "label": "Is Cumulative" @@ -656,7 +657,7 @@ "icon": "fa fa-gift", "idx": 1, "links": [], - "modified": "2025-02-17 18:15:39.824639", + "modified": "2025-08-20 11:40:07.096854", "modified_by": "Administrator", "module": "Accounts", "name": "Pricing Rule", diff --git a/erpnext/accounts/doctype/promotional_scheme/promotional_scheme.json b/erpnext/accounts/doctype/promotional_scheme/promotional_scheme.json index 68cff610760..f37d51e5268 100644 --- a/erpnext/accounts/doctype/promotional_scheme/promotional_scheme.json +++ b/erpnext/accounts/doctype/promotional_scheme/promotional_scheme.json @@ -93,12 +93,14 @@ }, { "default": "0", + "depends_on": "eval:doc.apply_on != 'Transaction'", "fieldname": "mixed_conditions", "fieldtype": "Check", "label": "Mixed Conditions" }, { "default": "0", + "depends_on": "eval:doc.apply_on != 'Transaction'", "fieldname": "is_cumulative", "fieldtype": "Check", "label": "Is Cumulative" @@ -278,7 +280,7 @@ } ], "links": [], - "modified": "2024-03-27 13:10:22.103686", + "modified": "2025-08-20 11:48:23.231081", "modified_by": "Administrator", "module": "Accounts", "name": "Promotional Scheme",