Import bank transactions
A Bank Transaction is one line from a bank statement: the date, the deposit or withdrawal, the description, and the bank's reference. You import Bank Transactions so that you can reconcile them with the payments and journals in ERPNext.
A Bank Transaction does not post to the ledger. The ledger effect comes from the Payment Entry or Journal Entry that you match to it.
Prerequisites
- A company Bank Account that is not disabled, linked to a ledger account of type Bank.
- Permission to create and submit Bank Transactions. ERPNext submits each imported line.
- The statement file from the bank. Keep the original file for audit.
Import a statement on the Banking page
The Banking page reads CSV, XLSX, XLS, and PDF statements. It detects the header row, the columns, the date format, and the amount format by itself.
- Open the Banking page. Select Banking in the Accounting sidebar, or go to
/bankingon your site. - Select the company and the bank account at the top of the page.
- Select Import Bank Statement.
- Select the Company and the Bank Account, and attach the Bank Statement file.
- If the PDF statement has a password, enter it in PDF Password. ERPNext saves it encrypted in the Statement PDF Password field of the Bank Account and reuses it for the next statements.
- Select Upload.
- Review the Statement Details: the transaction dates, the number of transactions, the total debits and credits, the closing balance, the Detected Date Format, and the Detected Amount Format.
- Review the Preview Transactions table. If the columns are wrong, correct the column mapping or select the correct header row.
- Select the import button, for example Import 42 transactions. ERPNext creates and submits one Bank Transaction for each line.
The statement file needs a header row and these columns:
| Column | What it holds |
|---|---|
| Date | The transaction date. |
| Amount | One amount column with "CR"/"DR" values or positive and negative values. You can also have a separate column with CR/DR. |
| Withdrawal and Deposit | Separate amount columns. Use these when the file has no single amount column. |
| Description | The bank's description of the transaction. |
| Reference | The reference number of the transaction. Optional. |
PDF statements
For a PDF, ERPNext finds the tables on each page. Review each page:
- Map each column of the table.
- Select a row number to set or clear the header row.
- Exclude tables that are not transactions, for example advertisements or summaries.
- Drag the box around a table to move or resize it. ERPNext reads the table again from the new region.
Conflicting transactions
If Bank Transactions already exist for the same bank account and date range, ERPNext shows them under Conflicting Transactions before the import. Check them to avoid importing the same statement twice.
The Previous Imports list on the import page shows each earlier import with its file, dates, and number of transactions.
Other ways to bring in transactions
| Method | When to use it |
|---|---|
| Bank Statement Import form | Import a CSV or Excel file, a Google Sheets link, or an MT940 file (select Import MT940 Fromat). It uses the column mapping on the Bank. |
| Plaid integration | Synchronize transactions from a bank that Plaid supports. |
| Data Import | Load Bank Transactions from a spreadsheet with the standard import tool. |
| New Bank Transaction form | Enter a single line by hand, for example to correct a missing line. Submit it to make it available for reconciliation. |
Review a Bank Transaction
Open a Bank Transaction to check it. A receipt is in Deposit. A payment or charge is in Withdrawal. A line has only one of the two.
| Field | What it holds |
|---|---|
| Date | The date from the statement. |
| Status | Pending (draft), Unreconciled, Reconciled, or Cancelled. |
| Bank Account, Company | The company bank account of the statement. |
| Deposit, Withdrawal | The amount in or out. |
| Currency | Must be the currency of the bank's ledger account. |
| Description, Reference Number, Transaction ID, Transaction Type | The details from the bank. Use them to find the matching payment. |
| Party Type, Party | The customer, supplier, or employee, if known. |
| Party Name/Account Holder (Bank Statement), Party IBAN (Bank Statement), Party Account No. (Bank Statement) | The counterparty as the bank shows it. ERPNext uses these to find the party. |
| Payment Entries | The vouchers matched to this line during reconciliation. |
| Allocated Amount, Unallocated Amount | The part of the amount that is matched, and the part that is still open. |
| Included Fee | A bank fee that is already part of the withdrawal amount. It cannot be larger than the withdrawal. |
| Excluded Fee | A bank fee that the bank reported apart from the amount. When you save, ERPNext moves it into the amount: it subtracts it from a deposit or adds it to a withdrawal, and adds it to Included Fee. |
The status changes by itself: a submitted line with an unallocated amount is Unreconciled, and a line with no unallocated amount is Reconciled.
Do not change the bank's description or amount to force a match. If an imported value is wrong, fix the import and import the line again.
Find the party automatically
ERPNext can fill in Party Type and Party on imported Bank Transactions.
- In Accounts Settings, open the Others tab.
- In the Banking section, select Enable Automatic Party Matching. ERPNext looks for a Bank Account or an Employee with the same account number or IBAN as the counterparty.
- Optional: select Enable Fuzzy Matching. If the account number or IBAN does not match, ERPNext compares the party name and the description with your customers and suppliers.
You can also change these settings from Settings on the Banking page.
Troubleshooting
"Transaction currency: ... cannot be different from Bank Account(...) currency: ..."
The currency of the line differs from the currency of the bank's ledger account. Import the statement into the Bank Account that has the same currency.
"The bank account is not a company account" or "The bank account is disabled"
Select a company Bank Account that is active, or clear Disabled on the Bank Account.
"You do not have permission to import and submit bank transactions"
Ask your System Manager for create and submit permission on Bank Transaction.
Amounts are in the wrong direction
The amount format was detected wrongly, or the mapping swaps deposit and withdrawal. Cancel the wrong Bank Transactions, fix the mapping, and import again.
The same statement line appears twice
Compare the date, amount, reference, and transaction ID. Cancel the duplicate before you reconcile.