The Company doctype is the foundation of your ERPNext instance. It stores essential information about your organization including accounting defaults, warehouses, and system preferences.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/frappe/erpnext/llms.txt
Use this file to discover all available pages before exploring further.
Creating a New Company
Enter Basic Information
Fill in the required fields:
- Company Name: Full legal name of your company
- Abbreviation (abbr): Short code appended to account names (auto-generated from company name)
- Country: Select your country for regional fixtures
- Default Currency: Base currency for all transactions
Configure Chart of Accounts
Choose how to create your chart of accounts:
- Standard Template: Use ERPNext’s built-in chart of accounts
- Existing Company: Copy structure from another company in the system
Save and Let ERPNext Initialize
When you save, ERPNext automatically creates:
- Default accounts (Cash, Bank, Receivable, Payable, etc.)
- Default warehouses (Stores, Work In Progress, Finished Goods, Goods In Transit)
- Default cost centers (Main cost center)
- Default departments (Accounts, Sales, Purchase, etc.)
The company abbreviation is mandatory and must be unique. It’s automatically appended to account names like “Cash - WP” where “WP” is the abbreviation.
Key Company Fields
Basic Information
| Field | Description | Example |
|---|---|---|
| Company Name | Legal name of the company | ”Wind Power LLC” |
| Abbreviation | Short code for accounts | ”WP” |
| Country | Company’s country of operation | ”United States” |
| Default Currency | Base currency for accounting | ”USD” |
| Tax ID | Government tax identification number | ”12-3456789” |
Accounting Defaults
ERPNext auto-creates and assigns default accounts during company setup:Inventory Settings
Enable Perpetual Inventory
Enable Perpetual Inventory
When enabled, stock movements automatically create accounting entries:
- Purchase Receipt creates entries in Stock and Payable accounts
- Delivery Note creates entries in Stock and Receivable accounts
- Stock Entry affects inventory accounts in real-time
- Must set a Default Inventory Account
- Cannot be disabled once transactions exist
Enable Item-wise Inventory Account
Enable Item-wise Inventory Account
Track inventory for each item separately instead of warehouse-level tracking.
Valuation Method
Valuation Method
Choose how inventory is valued:
- FIFO: First In, First Out
- Moving Average: Weighted average cost
- LIFO: Last In, First Out
Parent Company and Group Companies
ERPNext supports multi-company hierarchies using a nested set structure:Create Child Companies
When creating new companies, set the Parent Company field. The chart of accounts will automatically copy from the parent.
Default Warehouses
When a company is created, these warehouses are automatically set up:Default Departments
ERPNext creates a comprehensive department structure automatically:- All Departments (parent group)
- Accounts
- Marketing
- Sales
- Purchase
- Operations
- Production
- Dispatch
- Customer Service
- Human Resources
- Management
- Quality Management
- Research & Development
- Legal
Important Validations
All default accounts must belong to the company and cannot be group accounts or disabled accounts (
company.py:243-293).Advanced Settings
Exchange Rate Revaluation
- Auto Exchange Rate Revaluation: Automatically revalue foreign currency accounts
- Auto ERR Frequency: Set frequency (Daily, Weekly, Monthly)
- Submit ERR Journal Voucher: Auto-submit revaluation entries