Ledger Account

Hierarchy Level 4 • Under Bank Accounts

This is the most detailed level, representing an actual account in the General Ledger where transactions are posted. Each ledger account has a unique code and name.

Table Schema: ledger_accounts

Column Data Type Description Constraints
idINTEGERPrimary key for the ledger account.PK, Auto-Increment
account_codeVARCHAR(20)The unique identifier for the ledger account.NOT NULL, UNIQUE
account_nameVARCHAR(255)The specific name of the account (e.g. "HBL Main Account").NOT NULL
type_idINTEGERForeign key linking to the parent account type.NOT NULL, FK (account_types.id)
is_activeBOOLEANIndicates if transactions can be posted to this account.NOT NULL, Default: TRUE

Sample Ledger Accounts

Account Code Account Name Is Active
101-001 HBL Main Account Active
101-002 Meezan Bank Petty Cash Active
101-003 Old UBL Account (Closed) Inactive