Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
plugin "beancount.plugins.ira_contribs" "{
'currency': 'HSAUSD',
'accounts': {
'Expenses:Medical': (
'Expenses:HSA:Spent',
'Assets:HSA:Withdrawable'),
('C', 'Assets:Checking'): (
'Assets:HSA:Withdrawable',
'Expenses:HSA:Withdrawn')
}
}"
2020-01-01 commodity HSAUSD
name: "HSA dollars that can be withdrawn tax free"
2020-01-01 commodity STOCK
2020-01-01 commodity USD
2020-01-01 open Expenses:Medical USD
2020-01-01 open Income:Paycheck
2020-01-01 open Assets:HSA
2020-01-01 open Assets:Checking USD
2020-01-01 open Expenses:HSA:Spent HSAUSD
2020-01-01 open Assets:HSA:Withdrawable HSAUSD
2020-01-01 open Expenses:HSA:Withdrawn HSAUSD
2020-11-15 * "Paycheck"
Assets:HSA 2 STOCK {100 USD}
Assets:Checking 400 USD
Income:Paycheck -600 USD
2020-11-16 * "Medical Expense"
Expenses:Medical 150 USD
Assets:Checking -150 USD
2020-11-17 * "HSA Withdrawl"
Assets:HSA -1 STOCK { 100 USD }
C Assets:Checking 100 USD
; $ bean-report ledger.beancount bal
; Assets:Checking 350 USD
; Assets:HSA 1 STOCK
; Assets:HSAWithdrawable 50 HSAUSD
; Equity
; Expenses:HSA:Spent -150 HSAUSD
; Expenses:HSA:Withdrawn 100 HSAUSD
; Expenses:Medical 150 USD
; Income:Paycheck -600 USD
; Liabilities
; $ bean-report ledger.beancount holdings
; Account Units Currency Cost Currency Average Cost Price Book Value Market Value
; ---------------------- ------ -------- ------------- ------------ ----- ---------- ------------
; Assets:Checking 350.00 USD USD 350.00 350.00
; Assets:HSA 1.00 STOCK USD 100.00 100.00
; Assets:HSAWithdrawable 50.00 HSAUSD HSAUSD 50.00 50.00
; ---------------------- ------ -------- ------------- ------------ ----- ---------- ------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment