feat(Bank Account): Add IFSC Code field with format validation for Indian bank accounts
Author: joshua223777Created Sep 30, 2026Updated Sep 30, 2026
Labelsfeature-request
## Problem Statement
Indian bank accounts are identified by an account number plus an IFSC code (11 characters), which is required for NEFT/RTGS/IMPS transfers. The Bank Account doctype has no dedicated IFSC field. It only has generic fields such as branch_code, IBAN and SWIFT number, which don't map cleanly to how Indian users record bank details.
As a result:
- Users store IFSC in the wrong field (Branch Code, Bank Account No., or a custom field), so the data is inconsistent across implementations.
- There is no validation, so typos and lowercase or malformed IFSC codes are accepted and only surface when a bank transfer fails.
- Print formats, bank payment files and payment advice can't reliably pick up the IFSC, because there is no standard fieldname.
- Every implementation partner ends up creating its own custom field (
ifsc_code,ifsc,custom_ifsc, etc.), which makes upgrades and integrations harder.
## Expected Behaviour Bank Account should have a standard IFSC Code field that is validated and available for reuse in payment documents and print formats.
## Proposed Solution
- Add a new Data field
ifsc_code(label: "IFSC Code") to Bank Account.- Visible only for Indian bank accounts (e.g.
depends_onthe linked Bank/Company country being India), so other regions are unaffected. - Optionally mandatory for India via
mandatory_depends_on.
- Visible only for Indian bank accounts (e.g.
- Add server-side validation in
validate():- Convert to uppercase and strip whitespace.
- Validate against the standard format: 4 letters, then
0, then 6 alphanumeric characters (^[A-Z]{4}0[A-Z0-9]{6}$). - Throw a clear error message when invalid.
- Add matching client-side validation or formatting for immediate feedback.
- Make the field available for use in:
- Bank Account list and search fields
- Print formats (Payment Entry, Payment Advice)
- Fetch into Payment Entry for the party's bank account
## Alternatives Considered
- Reusing
branch_code: semantically different and not India-specific, so it can't carry India-only validation without affecting other countries. - Custom field per site: works, but is not standardised or upgrade-safe, and gives no shared validation.
Source: frappe/erpnext