From ab673d9e4b2c77e11471431c44649cd40dc0db34 Mon Sep 17 00:00:00 2001 From: walstanb Date: Sat, 27 Mar 2021 12:52:23 +0530 Subject: [PATCH] fix: minor changes --- .../doctype/pos_invoice_merge_log/test_pos_invoice_merge_log.py | 2 -- erpnext/regional/india/utils.py | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/erpnext/accounts/doctype/pos_invoice_merge_log/test_pos_invoice_merge_log.py b/erpnext/accounts/doctype/pos_invoice_merge_log/test_pos_invoice_merge_log.py index 6588bc8ea36..d880caa3c73 100644 --- a/erpnext/accounts/doctype/pos_invoice_merge_log/test_pos_invoice_merge_log.py +++ b/erpnext/accounts/doctype/pos_invoice_merge_log/test_pos_invoice_merge_log.py @@ -46,7 +46,6 @@ class TestPOSInvoiceMergeLog(unittest.TestCase): self.assertFalse(pos_inv.consolidated_invoice == pos_inv3.consolidated_invoice) finally: - frappe.set_user("Administrator") frappe.db.sql("delete from `tabPOS Profile`") frappe.db.sql("delete from `tabPOS Invoice`") @@ -96,7 +95,6 @@ class TestPOSInvoiceMergeLog(unittest.TestCase): self.assertTrue(frappe.db.get_value("Sales Invoice", pos_inv_cn.consolidated_invoice, "is_return")) finally: - frappe.set_user("Administrator") frappe.db.sql("delete from `tabPOS Profile`") frappe.db.sql("delete from `tabPOS Invoice`") diff --git a/erpnext/regional/india/utils.py b/erpnext/regional/india/utils.py index 0a2cf489ad8..3637de438cd 100644 --- a/erpnext/regional/india/utils.py +++ b/erpnext/regional/india/utils.py @@ -826,7 +826,7 @@ def get_regional_round_off_accounts(company, account_list): gst_account_list = [] for account in ['cgst_account', 'sgst_account', 'igst_account']: - if account in gst_accounts.keys(): + if account in gst_accounts: gst_account_list += gst_accounts.get(account) account_list.extend(gst_account_list)