Set up a mode of payment
A Mode of Payment names how money is paid or received, for example Cash, Bank Transfer, Cheque, or Credit Card. For each company, it also holds a default account. When a user selects the mode in a Payment Entry, a POS Invoice, or a Sales Invoice payment row, ERPNext fills that account.
Selecting a Mode of Payment does not post anything to the ledger. The document that uses it posts the entries when you submit it.
Prerequisites
- The bank and cash accounts exist in the Chart of Accounts. The default account must be a ledger (not a group) with Account Type set to Bank, Cash, or Receivable.
- You know which account each company uses for this payment method.
Create a Mode of Payment
- Open the Mode of Payment list and select Add Mode of Payment.
- In Mode of Payment, enter the name that users see, for example
Bank Transfer. The name must be unique. - In Type, select Cash, Bank, General, or Phone.
- In the Accounts table, add one row for each company that uses this mode:
- Company: the company.
- Default Account: the bank or cash ledger of that company.
- Keep Enabled selected so that users can select the mode.
- Save the Mode of Payment.
Test the mode in a draft Payment Entry. When you select it, the bank or cash account of the payment changes to the Default Account.
Fields
| Field | What it controls |
|---|---|
| Mode of Payment | The name that users select in documents. |
| Enabled | Whether users can select the mode. |
| Type | The kind of method: Cash, Bank, General, or Phone. For example, a Payment Order creates a Cash Entry journal for a Cash mode and a Bank Entry journal for other modes. |
| Company | The company that the row applies to. Each company can appear once. |
| Default Account | The ledger that ERPNext proposes for this mode in that company. It must belong to the same company. |
Type describes the method. It does not choose the ledger. The Default Account chooses the ledger. A mode called "Cash" that points to an account of type Bank posts to that bank account, and its payments appear in bank reconciliation.
Troubleshooting
Please set default Cash or Bank account in Mode of Payment
The mode has no Accounts row for the company of the document. Add a row for that company with its default account.
Same Company is entered more than once
The Accounts table has two rows for one company. Each mode has one default account for each company. Remove the extra row.
Account does not match with Company
The Default Account of a row belongs to another company. Select an account of the company in that row.
The wrong account appears in the Payment Entry
Check the Accounts row of the mode for the company of the Payment Entry. If you created the Payment Entry from another document, that document may have supplied its own account.
You cannot disable the mode
ERPNext shows "POS Profile ... contains Mode of Payment ... Please remove them to disable this mode." Remove the mode from the payment methods of those POS Profiles first. See POS Profile.
Frequently asked questions
Can one mode use a different account for each branch?
No. The mapping is by company. For branch-specific retail payments, use separate POS Profiles, each with its own payment accounts.
Do I need one mode for each bank account?
Usually not. Create modes that users understand, such as Cash, Cheque, and Bank Transfer. Add separate modes only when users must choose between bank accounts on purpose.
Is a Mode of Payment the same as a payment gateway?
No. A Mode of Payment names the method and maps it to an account. An online payment gateway, such as Stripe or Razorpay, needs the separate Payments app and its own setup. See Create a Payment Request.