From 37dbc2be4827213271c00be29853adac9dfe2ac5 Mon Sep 17 00:00:00 2001 From: Ali <010109ali@gmail.com> Date: Mon, 18 May 2026 14:17:33 +0000 Subject: [PATCH] fix(create-accounts): set is_company_account=1 on auto-created Bank Accounts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bank Accounts created via the "Create Bank Accounts" button represent the user's own accounts at the bank — not counterparty accounts — so they need is_company_account=1. Without it, ERPNext treats them as external and they don't appear in Bank Reconciliation Tool or as selectable paid_from/paid_to in Payment Entry / Journal Entry. --- jey_erp/bank_integration/creation.py | 1 + 1 file changed, 1 insertion(+) diff --git a/jey_erp/bank_integration/creation.py b/jey_erp/bank_integration/creation.py index f22c68c..aea2348 100644 --- a/jey_erp/bank_integration/creation.py +++ b/jey_erp/bank_integration/creation.py @@ -249,6 +249,7 @@ def create_unmapped_accounts(bank_integration): ba.iban = row.iban ba.bank = default_bank ba.company = default_company + ba.is_company_account = 1 ba.bank_integration_type = "Bank Statement Importer" ba.bank_integration = bi.name ba.insert(ignore_permissions=True)