From d5c82ccbab7838533d4a7ef9a98e71c78ebb114a Mon Sep 17 00:00:00 2001 From: ljain112 Date: Wed, 9 Oct 2024 17:34:59 +0530 Subject: [PATCH] test: fixed account settings in test case --- .../tax_withholding_category/test_tax_withholding_category.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/erpnext/accounts/doctype/tax_withholding_category/test_tax_withholding_category.py b/erpnext/accounts/doctype/tax_withholding_category/test_tax_withholding_category.py index f8b38805b06..b4550d2bb53 100644 --- a/erpnext/accounts/doctype/tax_withholding_category/test_tax_withholding_category.py +++ b/erpnext/accounts/doctype/tax_withholding_category/test_tax_withholding_category.py @@ -214,6 +214,10 @@ class TestTaxWithholdingCategory(FrappeTestCase): d.reload() d.cancel() + @change_settings( + "Accounts Settings", + {"unlink_payment_on_cancellation_of_invoice": 1}, + ) def test_tcs_on_allocated_advance_payments(self): frappe.db.set_value( "Customer", "Test TCS Customer", "tax_withholding_category", "Cumulative Threshold TCS"