Skip to content
ERPNext Data Model
Esc
navigateopen⌘Jpreview
On this page

Ledgers & derived

Accounts ledgers & derived — 8 entities with their key fields and relationships.

Append-only tables written by transactions rather than entered by a user. Never edited directly — they are rebuilt by reposting.

8 entities in Accounts.

Account Closing Balance

Stores aggregated account balances at a closing date so financial reports can begin from a saved closing position instead of replaying all GL Entries.

Ledger / derived

Naming: hash · 16 fields · 0 inbound refs

Key fields

Field Type Req Label
closing_date Date Closing Date

Relationships

Field Type References Req
account Link Account
account_currency Link Currency (fw)
company Link Company
cost_center Link Cost Center
finance_book Link Finance Book
period_closing_voucher Link Period Closing Voucher
project Link Project

Advance Payment Ledger Entry

Tracks how an advance-payment voucher is linked, valued, or delinked against another voucher.

Ledger / derived

Naming: hash · 11 fields · 0 inbound refs

Relationships

Field Type References Req
against_voucher_type Link DocType (fw)
company Link Company
currency Link Currency (fw)
voucher_type Link DocType (fw)
against_voucher_no Dynamic Link resolved via against_voucher_type
voucher_no Dynamic Link resolved via voucher_type

Bank Account Balance

Stores a bank account’s balance on a specific date for reconciliation and balance history.

Ledger / derived

Naming: hash · 4 fields · 0 inbound refs

Key fields

Field Type Req Label
date Date yes Date
balance Currency yes Balance

Relationships

Field Type References Req
bank_account Link Bank Account yes
company Link Company

Bisect Nodes

Stores the date-range nodes used to divide accounting statements and locate periods with balance-sheet and profit-and-loss differences.

Ledger / derived

Naming: autoincrement · 9 fields · 3 inbound refs

Relationships

Field Type References Req
left_child Link Bisect Nodes
right_child Link Bisect Nodes
root Link Bisect Nodes

GL Entry

Records one debit or credit line posted by a voucher to the general ledger.

Ledger / derived

Naming: Expression (old style) · 47 fields · 0 inbound refs

Key fields

Field Type Req Label
posting_date Date Posting Date
transaction_date Date Transaction Date

Relationships

Field Type References Req
account Link Account
account_currency Link Currency (fw)
against_voucher_type Link DocType (fw)
company Link Company
cost_center Link Cost Center
finance_book Link Finance Book
fiscal_year Link Fiscal Year
party_type Link DocType (fw)
project Link Project
transaction_currency Link Currency (fw)
voucher_type Link DocType (fw)
against_voucher Dynamic Link resolved via against_voucher_type
party Dynamic Link resolved via party_type
voucher_no Dynamic Link resolved via voucher_type

Ledger Health

Records vouchers where automated checks found a debit-credit mismatch or a difference between the general and payment ledgers.

Ledger / derived

Naming: autoincrement · 5 fields · 0 inbound refs

Relationships

No outgoing relationships.

Loyalty Point Entry

Records loyalty points earned, redeemed, or adjusted for a customer and links them to the originating invoice when applicable.

Ledger / derived

Naming: hash · 12 fields · 1 inbound ref

Key fields

Field Type Req Label
loyalty_points Int yes Loyalty Points
expiry_date Date yes Expiry Date
posting_date Date yes Posting Date

Relationships

Field Type References Req
company Link Company yes
customer Link Customer yes
invoice_type Link DocType (fw) yes
loyalty_program Link Loyalty Program yes
redeem_against Link Loyalty Point Entry
invoice Dynamic Link resolved via invoice_type

Payment Ledger Entry

Records receivable or payable amounts and their allocation between vouchers, providing the ledger used for outstanding balances.

Ledger / derived

Naming: hash · 20 fields · 0 inbound refs

Key fields

Field Type Req Label
posting_date Date Posting Date
amount Currency Amount
delinked Check DeLinked

Relationships

Field Type References Req
account Link Account
account_currency Link Currency (fw)
against_voucher_type Link DocType (fw)
company Link Company
cost_center Link Cost Center
finance_book Link Finance Book
party_type Link DocType (fw)
project Link Project
voucher_type Link DocType (fw)
against_voucher_no Dynamic Link resolved via against_voucher_type
party Dynamic Link resolved via party_type
voucher_no Dynamic Link resolved via voucher_type

Was this page helpful?