fix: minor changes

This commit is contained in:
walstanb 2021-03-27 12:52:23 +05:30 committed by Sagar Vora
parent 225c64a1ad
commit ab673d9e4b
2 changed files with 1 additions and 3 deletions

View File

@ -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`")

View File

@ -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)