From eee1fdf2768042ee3092710da5398bbe70a68b3d Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Mon, 22 Jun 2026 18:05:20 +0530 Subject: [PATCH] fix: reset grant_commission to default 1 after tests Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> --- erpnext/selling/doctype/sales_order/test_sales_order.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/selling/doctype/sales_order/test_sales_order.py b/erpnext/selling/doctype/sales_order/test_sales_order.py index 934141a2090..5ba55d304c3 100644 --- a/erpnext/selling/doctype/sales_order/test_sales_order.py +++ b/erpnext/selling/doctype/sales_order/test_sales_order.py @@ -3061,7 +3061,7 @@ class TestSalesOrder(ERPNextTestSuite): self.assertFalse(duplicate.total_commission) self.assertFalse(duplicate.amount_eligible_for_commission) finally: - frappe.db.set_value("Item", "_Test Item", "grant_commission", 0) + frappe.db.set_value("Item", "_Test Item", "grant_commission", 1) def test_commission_rate_carried_through_mapper(self): """commission_rate is no_copy, but Make Delivery Note / Sales Invoice still carries it."""