Version 6.7.7 Source

Table Name: `tabAccount`

Heads (or groups) against which Accounting Entries are made and balances are maintained.

### Fields

Sr | Fieldname | Type | Label | Options
--- | --- | --- | --- | ---
1 | `properties` | Section Break |  |
2 | `column_break0` | Column Break |  |
3 | `account_name` | Data | Account Name |
4 | `is_group` | Check | Is Group |
5 | `company` | Link | Company | Company
6 | `root_type` | Select | Root Type |
    Asset
    Liability
    Income
    Expense
    Equity
7 | `report_type` | Select | Report Type |
    Balance Sheet
    Profit and Loss
8 | `account_currency` | Link | Currency | Currency
9 | `column_break1` | Column Break |  |
10 | `parent_account` | Link | Parent Account | Account
11 | `account_type` | Select | Account Type Setting Account Type helps in selecting this Account in transactions. |
    Bank
    Cash
    Tax
    Chargeable
    Warehouse
    Receivable
    Payable
    Equity
    Fixed Asset
    Cost of Goods Sold
    Expense Account
    Round Off
    Income Account
    Stock Received But Not Billed
    Expenses Included In Valuation
    Stock Adjustment
    Stock
    Temporary
12 | `tax_rate` | Float | Rate Rate at which this tax is applied |
13 | `freeze_account` | Select | Frozen If the account is frozen, entries are allowed to restricted users. |
    No
    Yes
14 | `warehouse` | Link | Warehouse | Warehouse
15 | `balance_must_be` | Select | Balance must be |
    Debit
    Credit
16 | `lft` | Int | Lft |
17 | `rgt` | Int | Rgt |
18 | `old_parent` | Data | Old Parent |

### Controller

#### erpnext.accounts.doctype.account.account

### Class Account

Inherits from frappe.model.document.Document

after_rename (self, old, new, merge=False)

No docs

autoname (self)

No docs

before_rename (self, old, new, merge=False)

No docs

check_gle_exists (self)

No docs

check_if_child_exists (self)

No docs

convert_group_to_ledger (self)

No docs

convert_ledger_to_group (self)

No docs

on_trash (self)

No docs

on_update (self)

No docs

onload (self)

No docs

set_root_and_report_type (self)

No docs

update_nsm_model (self)

update lft, rgt indices for nested set model

validate (self)

No docs

validate_account_currency (self)

No docs

validate_balance_must_be_debit_or_credit (self)

No docs

validate_frozen_accounts_modifier (self)

No docs

validate_mandatory (self)

No docs

validate_parent (self)

Fetch Parent Details and validate parent account

validate_root_details (self)

No docs

validate_trash (self)

checks gl entries and if child exists

validate_warehouse (self, warehouse)

No docs

validate_warehouse_account (self)

No docs

### Class RootNotEditable

Inherits from frappe.exceptions.ValidationError

erpnext.accounts.doctype.account.account.get_account_currency (account)

Helper function to get account currency

erpnext.accounts.doctype.account.account.get_parent_account (doctype, txt, searchfield, start, page_len, filters)

No docs

#### Linked In:

- Account
- Bank Reconciliation
- Budget Detail
- Company
- Delivery Note Item
- Expense Claim Detail
- Expense Claim Type
- GL Entry
- Item
- Item Group
- Item Tax
- Journal Entry Account
- Mode of Payment Account
- Party Account
- Payment Reconciliation
- Payment Tool
- Period Closing Voucher
- POS Profile
- Purchase Invoice
- Purchase Invoice Item
- Purchase Taxes and Charges
- Sales Invoice
- Sales Invoice Item
- Sales Taxes and Charges
- Shipping Rule
- Stock Entry
- Stock Entry Detail
- Stock Reconciliation
- Warehouse