Technical

ERPNext Bank Reconciliation: Import, Match and Clear Transactions

A practical guide to bank reconciliation in ERPNext: setting up bank accounts, importing statements, matching Payment Entries and Journal Entries in the Bank Reconciliation Tool, and dealing with transactions that don't match.

Kalvyai Engineering · · 8 min read

ERPNext Bank Reconciliation: Import, Match and Clear Transactions (cover)
On this page

Bank reconciliation in ERPNext compares two records of the same money. One is the bank's list of what moved through the account. The other is the Payment Entries and Journal Entries your team posted. Every bank line should point to a voucher, and every voucher that touched the bank should have a clearance date.

This post covers the full flow: setup, importing statements, matching in the Bank Reconciliation Tool, and what to do with lines that don't match. It is based on the v14/v15 design, where bank lines are stored as Bank Transaction records. Screens and button labels change between versions, so check them against your own site.

How the pieces fit together

ERPNext uses four parts for reconciliation:

  • Bank Account: links a real bank account to a ledger account in your Chart of Accounts.
  • Bank Transaction: one row per line on your bank statement. It holds the date, deposit or withdrawal, description and reference number, plus the amount allocated to vouchers so far.
  • Vouchers: Payment Entries, Journal Entries and, depending on version and setup, other documents that post to the bank ledger account.
  • Bank Reconciliation Tool: the screen where you link Bank Transactions to vouchers.

When you match a Bank Transaction to a voucher, ERPNext records the link and sets the voucher's clearance date. The clearance date is what the Bank Reconciliation Statement report uses to separate cleared items from uncleared ones.

Step 1: Set up the bank account correctly

Most reconciliation problems start here.

  1. Create a Bank record for your bank if it does not exist.
  2. Create a Bank Account for each real account. Tick Is Company Account and select the company.
  3. Set the Account field to the ledger account that represents this bank, for example HDFC Current - ABC. Each bank account should have its own ledger account. Two real accounts sharing one ledger account cannot be reconciled cleanly.
  4. Make sure payments are posted to that ledger account. On a Payment Entry, the Account Paid To (receipts) or Account Paid From (payments) must be this bank ledger, not a generic Cash account.

Also check that people fill in Reference No and Reference Date on bank Payment Entries. ERPNext asks for them when the mode of payment is a bank type. The reference number (UTR, cheque number, transaction ID) is the most useful matching key you have.

Step 2: Import the bank statement

You have three ways to get Bank Transactions into ERPNext.

Option A: Bank Statement Import

ERPNext has a Bank Statement Import doctype that works like the standard Data Import, but targets Bank Transactions for one bank account. You can also reach it from the Bank Reconciliation Tool through the upload statement button.

  1. Open Bank Statement Import and select the Company and Bank Account.
  2. Upload a CSV or XLSX file exported from your bank.
  3. Map the bank's columns to Bank Transaction fields: Date, Deposit, Withdrawal, Description, Reference Number. You can save the mapping on the Bank record so the next import is faster.
  4. Run the import and review the error log for rejected rows.
  5. Submit the created Bank Transactions if the import leaves them in draft.

Option B: Data Import

You can use the generic Data Import into the Bank Transaction doctype. This is useful for one-off bulk loads, such as migrating several months of history.

Option C: Bank feeds

ERPNext includes a Plaid integration for banks that Plaid supports. Coverage depends on country and bank, so confirm your bank is supported before planning around it. For many banks, especially in India, the CSV/XLSX route is the practical one.

Cleaning the bank file before import

Bank exports are often messy: header rows, a single signed amount column, dates in DD/MM/YYYY, commas inside numbers. A short script saves a lot of import errors. This example splits a signed amount into Deposit and Withdrawal columns and normalises the date:

Python
import csv
from datetime import datetime

SRC = "bank_export.csv"
DST = "bank_for_erpnext.csv"

with open(SRC, newline="", encoding="utf-8-sig") as f_in, \
     open(DST, "w", newline="", encoding="utf-8") as f_out:
    reader = csv.DictReader(f_in)
    writer = csv.writer(f_out)
    writer.writerow(["Date", "Description", "Reference Number", "Deposit", "Withdrawal"])

    for row in reader:
        # Adjust column names to match your bank's export
        raw_date = row["Txn Date"].strip()
        if not raw_date:
            continue  # skip footer / summary rows
        date = datetime.strptime(raw_date, "%d/%m/%Y").strftime("%Y-%m-%d")
        amount = float(row["Amount"].replace(",", ""))
        deposit = amount if amount > 0 else 0
        withdrawal = -amount if amount < 0 else 0
        writer.writerow([
            date,
            row["Narration"].strip(),
            row["Ref No"].strip(),
            f"{deposit:.2f}",
            f"{withdrawal:.2f}",
        ])

Keep the reference number as text. Spreadsheet tools like to turn long UTR numbers into scientific notation, which ruins matching.

Step 3: Open the Bank Reconciliation Tool

Search for Bank Reconciliation Tool in the awesome bar.

  1. Select the Company and Bank Account.
  2. Set the Bank Statement From Date and To Date to match the statement period.
  3. Enter the Closing Balance as per the bank statement. The tool shows the opening balance from your books and the difference, so you can see how far apart they are.
  4. Click the button to fetch unreconciled entries.

You now see a list of Bank Transactions that are not fully allocated, with deposit, withdrawal, reference number and party where known.

Step 4: Match transactions to vouchers

For each Bank Transaction, open its action dialog. You get three choices.

Match against a voucher

ERPNext suggests vouchers that could fit, ranked by how closely they match: same amount, same reference number, same party. You can filter by voucher type (Payment Entry, Journal Entry, and in newer versions unpaid Sales and Purchase Invoices) and limit the list to exact amounts.

  1. Tick one or more vouchers.
  2. Check that the total matches the bank amount.
  3. Click Reconcile.

You can match one bank line to several vouchers. A common case is a customer who pays three invoices in one transfer, with three Payment Entries in ERPNext.

Create a voucher

If there is no voucher yet, create one from the dialog:

  • Payment Entry: for customer receipts and supplier payments. Pick the party; the payment is created against the bank account and reconciled in one step.
  • Journal Entry: for anything without a party, such as bank charges, interest, tax deducted by the bank, or loan installments.

Update the Bank Transaction

Use this to correct the reference number, party or description on the Bank Transaction itself, so future matching works better.

Auto reconcile

The tool has an auto-reconcile option that matches transactions where the reference number and amount line up with an existing voucher. It works well when your team enters reference numbers consistently. Always review the results before closing the period.

Step 5: Handle unmatched transactions

After matching, some lines will be left. Here is how to deal with the usual cases.

Bank charges, interest and fees

Create a Journal Entry from the dialog. Debit a Bank Charges expense account for charges, or credit an Interest Income account for interest. If the same charge appears every month, keep a list of the accounts to use so everyone posts it the same way.

Customer paid, but no Payment Entry exists

Create a Payment Entry from the dialog, select the customer, and allocate against open invoices. If you can't tell who paid from the bank narration, post it to a suspense account with a Journal Entry and reclassify later. Don't leave it unreconciled for months.

Amount differs slightly

The bank deposit is often smaller than the invoice because of bank fees, TDS, or currency rounding. Record the difference as a deduction on the Payment Entry (the Deductions or Loss table) instead of leaving a partial match. The Payment Entry total then equals what actually hit the bank.

Payment gateway settlements

Gateways usually settle in batches, net of fees. One bank deposit can cover dozens of customer payments. Two common approaches:

  1. Post customer receipts to a gateway clearing account. When the settlement lands, post a Journal Entry that moves the net amount to the bank and the fees to an expense account. Match the bank line to that Journal Entry.
  2. Record each settlement as one Payment Entry or Journal Entry with the batch reference from the gateway report, so the reference number matches the bank narration.

If you collect through Cashfree, Cashfree Payments for ERPNext lets you take UPI, card, net banking and wallet payments directly in ERPNext, so the customer-side payments are recorded where your accounts already live.

Transfers between your own accounts

Use a Payment Entry with type Internal Transfer. It appears as a withdrawal on one bank account and a deposit on the other. Reconcile each side on its own Bank Account.

Duplicates and wrong imports

If a statement was imported twice, cancel the duplicate Bank Transactions. Don't create vouchers to absorb them.

Vouchers with no bank line

Some vouchers will have no matching bank line: cheques not yet presented, or payments entered in the wrong period. These stay uncleared and show up in the Bank Reconciliation Statement. That is expected for items in transit. Anything older than a few weeks needs investigating.

Step 6: Verify with reports and queries

Run the Bank Reconciliation Statement report for the bank account and period end date. It starts from the balance in your books, adjusts for uncleared items, and shows the expected balance as per the bank. That figure should equal your statement closing balance.

For a quick database view, these queries list leftover items. Run them read-only, for example from the System Console or a reporting replica.

Submitted Payment Entries on a bank account that have not cleared:

SQL
SELECT name, posting_date, payment_type, party, paid_amount, reference_no
FROM `tabPayment Entry`
WHERE docstatus = 1
  AND clearance_date IS NULL
  AND (paid_from = 'HDFC Current - ABC' OR paid_to = 'HDFC Current - ABC')
ORDER BY posting_date;

Bank Transactions that still have an unallocated amount:

SQL
SELECT name, date, deposit, withdrawal, unallocated_amount, reference_number, description
FROM `tabBank Transaction`
WHERE docstatus = 1
  AND bank_account = 'HDFC Current - HDFC Bank'
  AND unallocated_amount > 0
ORDER BY date;

Replace the account names with your own. The Bank Account name format depends on how it was created.

Habits that make reconciliation faster

  • Reconcile weekly, not quarterly. Bank narrations are easier to understand while the transactions are fresh.
  • Enforce reference numbers. A Payment Entry without a UTR or cheque number is the hardest kind to match.
  • One ledger account per bank account. Never share.
  • Lock closed periods. Once a month is reconciled and checked, set an accounting freeze date or close the period so nobody posts into it.
  • Keep a suspense account small. Review it at every month end.

Where automation helps

Reconciliation is rule-heavy and repetitive, which makes it a good fit for automation with human review. Useful targets: cleaning bank files before import, suggesting matches based on narration patterns, and drafting Journal Entries for recurring charges for an accountant to approve. We prefer setups where nothing posts to the ledger without a person approving it, and every suggestion is logged.

If you want to experiment with AI-assisted steps, AI Base for ERPNext lets you plug any AI model into ERPNext with a hard monthly cap on spend.

How Kalvyai can help

We build and connect ERPNext systems, including bank account setup, statement import mappings, payment gateway flows, and custom matching rules for high-volume accounts. We also add AI agents that work inside ERPNext with approvals, budgets and an audit trail. See our ERPNext work at kalvyai.com/erpnext and our apps at store.kalvyai.com.

If your bank reconciliation takes days each month, get in touch and tell us how your statements and payments flow today.

Share this article

  • ERPNext
  • Bank Reconciliation
  • Accounting
  • Bank Statement Import
  • Payment Entry
  • Journal Entry

Kalvyai Engineering · Engineering team

The engineers who build, connect and fix business systems at Kalvyai: Odoo, ERPNext, Shopify and AI agents that work inside them with approvals, budgets and an audit trail.

Comments

No comments yet. Questions and corrections are welcome.

Rate this post or leave a comment

Your rating (optional)
Not rated

Comments appear after an editor approves them. See our privacy notice.

Read next

Indian GST in ERPNext with India Compliance: A Setup Guide (cover)Technical
Kalvyai EngineeringERPNext

Indian GST in ERPNext with India Compliance: A Setup Guide

How to set up Indian GST in ERPNext with the India Compliance app: GSTIN, GST accounts, tax templates, HSN codes, e-invoicing, e-way bills, and the GSTR-1 and GSTR-3B reports.

9 min read

Newsletter

Get new guides in your inbox.

Practical notes on Odoo, ERPNext, Shopify and AI agents, written by the engineers who build them. No spam, and you can ask to stop at any time.

Prefer a feed? Subscribe by RSS. We use your email only to send new articles. See our privacy policy.