File main.bean
; Metadata for the ledger
option "title" "Personal ledger"
option "operating_currency" "CZK"
option "operating_currency" "INR"
option "operating_currency" "EUR"
; Declaring all real-world storages/accounts
; Czech accounts
2023-01-01 open Assets:CZ:Raiffeisen-Bank:Current:CZK CZK
2023-01-01 open Assets:CZ:Raiffeisen-Bank:Savings:EUR EUR
2023-01-01 open Assets:CZ:Lent CZK
2023-01-01 open Assets:CZ:Cash CZK
; Indian accounts
2023-01-01 open Assets:IND:HDFC-Bank:Current INR
; Accounts used to register exchanges
2023-01-01 open Assets:Revolut:CZK CZK
2023-01-01 open Assets:Wise:CZK CZK
; Opening balances for various currencies
2023-01-01 open Equity:Opening-Balances:CZK CZK
2023-01-01 open Equity:Opening-Balances:EUR EUR
2023-01-01 open Equity:Opening-Balances:INR INR
; Expense accounts
2023-01-01 open Expenses:Long-Term:Electronics CZK
2023-01-01 open Expenses:Long-Term:Utilities CZK
2023-01-01 open Expenses:Social-Life CZK
2023-01-01 open Expenses:Monthly-Budget CZK
2023-01-01 open Expenses:Overspent-Budget CZK
2023-01-01 open Expenses:Uncategorised CZK
2023-01-01 open Expenses:Gifts CZK
2023-01-01 open Expenses:Trips:Sport CZK
; Transactions
; January 2023
; Lent
2023-01-01 * "Initialize account"
Assets:CZ:Lent 600 CZK
Equity:Opening-Balances:CZK
; Raiffeisen-Bank
2023-01-01 * "Initialize account"
Assets:CZ:Raiffeisen-Bank:Current:CZK 24976.89 CZK
Equity:Opening-Balances:CZK
2023-01-03 * "Buy "
Assets:CZ:Raiffeisen-Bank:Current:CZK -20000.00 CZK
Expenses:Long-Term:Electronics
2023-01-04 * "Recollection"
Assets:CZ:Raiffeisen-Bank:Current:CZK 200.00 CZK
Assets:CZ:Lent