From ff10f557c01e8f6e9da491b4a9e1434d2ba3293a Mon Sep 17 00:00:00 2001 From: Sagar Vora Date: Fri, 24 Jun 2022 13:49:20 +0530 Subject: [PATCH] test: use Sales Expenses instead of VAT to test disabled account --- .../accounts/doctype/sales_invoice/test_sales_invoice.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/erpnext/accounts/doctype/sales_invoice/test_sales_invoice.py b/erpnext/accounts/doctype/sales_invoice/test_sales_invoice.py index 34b81712ca2..154c84987ed 100644 --- a/erpnext/accounts/doctype/sales_invoice/test_sales_invoice.py +++ b/erpnext/accounts/doctype/sales_invoice/test_sales_invoice.py @@ -3060,7 +3060,8 @@ class TestSalesInvoice(unittest.TestCase): def test_sales_invoice_with_disabled_account(self): try: - account = frappe.get_doc("Account", "VAT 5% - _TC") + account_name = "Sales Expenses - _TC" + account = frappe.get_doc("Account", account_name) account.disabled = 1 account.save() @@ -3072,10 +3073,10 @@ class TestSalesInvoice(unittest.TestCase): "taxes", { "charge_type": "On Net Total", - "account_head": "VAT 5% - _TC", + "account_head": account_name, "cost_center": "Main - _TC", - "description": "VAT @ 5.0", - "rate": 9, + "description": "Commission", + "rate": 5, }, ) si.save()