Set company default accounts
Company default accounts are the fallback accounts that ERPNext uses when an Item, a party, a warehouse, a mode of payment, or a document row does not give a more specific account. Defaults save typing and keep similar documents on the same accounts.
ERPNext uses the most specific value that it finds, and then falls back to the company. For example, a customer-specific receivable account wins over the company's Default Receivable Account.
Prerequisites
- The company has a chart of accounts, a fiscal year, and a cost center.
- Each account that you select is a ledger account (not a group) of the same company.
Set the main default accounts
- Open the Company and go to the Accounts tab.
- In Default Accounts, set the fields that apply to you:
| Field | Used for |
|---|---|
| Default Bank Account | Bank payments and receipts when no other account is selected |
| Default Cash Account | Cash payments and receipts |
| Default Receivable Account | Customer balances on Sales Invoices. Learn more in Set receivable and payable accounts. |
| Default Payable Account | Supplier balances on Purchase Invoices |
| Write Off Account | Small balances written off on invoices and payments |
| Unrealized Profit / Loss Account | Unrealized profit on inter-company stock transfers |
| Default Cost of Goods Sold Account | Cost of goods sold and the default expense account of Items |
| Default Income Account | Sales income of Items |
| Default Payment Discount Account | Early-payment discounts from payment terms |
| Default Payment Terms Template | Payment schedule of new sales and purchase documents |
| Default Cost Center | Cost center of income and expense rows |
| Default Finance Book | Finance book of new documents |
- Save.
Set the adjustment accounts
On the same tab, set:
| Section | Field | Used for |
|---|---|---|
| Exchange Gain / Loss | Exchange Gain / Loss Account | Realized currency differences when you settle a foreign-currency invoice |
| Exchange Gain / Loss | Unrealized Exchange Gain/Loss Account | Exchange rate revaluation of open foreign-currency balances |
| Round Off | Round Off Account | Small differences caused by currency precision |
| Round Off | Round Off Cost Center | Cost center of the rounding entry |
| Round Off | Round Off for Opening | Rounding differences on opening entries |
Set the defaults for other features
Fill a section only when you use the feature:
- Deferred Accounting: Default Deferred Revenue Account and Default Deferred Expense Account. See About deferred revenue and expense.
- Advance Payments: Book Advance Payments in Separate Party Account, with Default Advance Received Account and Default Advance Paid Account.
- Exchange Rate Revaluation Settings: create revaluations automatically.
- Budget Detail: Exception Budget Approver Role. See Create a budget.
- Fixed Asset Defaults: depreciation, disposal, and capital work in progress accounts.
Stock accounts, such as Default Inventory Account and Stock Received But Not Billed, are on the Stock and Manufacturing tab. The freeze date is on the Accounts Closing tab. See Freeze accounting entries.
Which default wins
A value on the document row always wins. If the row has no value, ERPNext fetches it from the most specific master, and uses the company default last:
| Account | More specific sources |
|---|---|
| Income, expense, and cost center | Item defaults, then Item Group defaults |
| Receivable or payable | The Default Accounts table of the customer or supplier |
| Bank or cash on a payment | The mode of payment's default account for the company |
| Stock | The warehouse account |
Check the setup
- Create a draft Sales Invoice, Purchase Invoice, Payment Entry, and Journal Entry.
- Check the accounts and cost centers that ERPNext fetches.
- On the draft invoices, select Preview > Accounting Ledger to see the entries before you submit.
Troubleshooting
The account does not appear in the field
Check that the account belongs to the same company, is not a group, is not disabled, and has the correct root type or account type.
ERPNext selects a different account
A more specific default wins. Check the Item, Item Group, party, warehouse, mode of payment, and the document row.