Skip to content

Commit

Permalink
fix: remove config for default bank account in test
Browse files Browse the repository at this point in the history
(cherry picked from commit c42444a)
  • Loading branch information
GursheenK authored and mergify[bot] committed Feb 27, 2024
1 parent 8638d14 commit ad60677
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import frappe
from frappe.utils.response import json_handler

from erpnext.accounts.doctype.journal_entry.journal_entry import get_default_bank_cash_account
from erpnext.erpnext_integrations.doctype.plaid_settings.plaid_settings import (
add_account_subtype,
add_account_type,
Expand Down Expand Up @@ -106,14 +105,6 @@ def test_new_transaction(self):
bank = json.dumps(frappe.get_doc("Bank", "Citi").as_dict(), default=json_handler)
company = frappe.db.get_single_value("Global Defaults", "default_company")

if frappe.db.get_value("Company", company, "default_bank_account") is None:
frappe.db.set_value(
"Company",
company,
"default_bank_account",
get_default_bank_cash_account(company, "Cash").get("account"),
)

add_bank_accounts(bank_accounts, bank, company)

transactions = {
Expand Down

0 comments on commit ad60677

Please sign in to comment.