--
---
You received this message because you are subscribed to the Google Groups "Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ledger-cli+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Michael: this is a clever solution, I had never thought of it.Mostly because I don't have good filtering capabilities yet.
Michael: this is a clever solution, I had never thought of it.Mostly because I don't have good filtering capabilities yet.Nathan: I solved this problem by using a second currency to track the transfers, with an associated Income, Asset and Expense accounts in that currency. This requires no special filtering, only a bit of discipline to replicate existing postings (which can be automated). I'm assuming these HSA accounts are similar to tracking 401k and IRA contributions, which have limits and for which you may have to declare an amount for taxes.I briefly allude to this in this new section of the cookbook I wrote today (look for US401K):I'll be adding a section about 401K's very soon - meant to do it today actually - which describe this "mirrorring" solution in more detail, but if you look on the list you will find some emails where I discuss the solution, look for IRA or 401K or RSP.
; Solution for HSA problem for Nathan Grigg ; Potential contribution you receive from the Govt 2012-01-01 open Income:US:Govt:PreTax HSAUSD ; Remaining contributions 2012-01-01 open Assets:US:Govt:PreTax HSAUSD ; How many contributions you've made on that year 2012-01-01 open Expenses:Taxes:US:TY2014:PreTax HSAUSD 2012-01-01 open Assets:Health-Savings USD,HSAUSD 2012-01-01 open Assets:Checking USD 2012-01-01 open Expenses:Health 2012-01-01 open Income:Interest 2013-12-31 * "Initializing contributions for 2014" Income:US:Govt:PreTax -3300 HSAUSD Assets:US:Govt:PreTax 2014-01-01 balance Assets:US:Govt:PreTax 3300 HSAUSD 2014-06-01 * "Transfer" Assets:Health-Savings 500 USD Assets:Checking -500 USD Assets:US:Govt:PreTax -500 HSAUSD Expenses:Taxes:US:TY2014:PreTax 500 HSAUSD 2014-06-10 * "Doctor" Expenses:Health 200 USD Assets:Health-Savings 2014-07-01 * "Interest" Assets:Health-Savings 0.25 USD Income:Interest ; bean-query /home/blais/p/ledger-experiments/hsa.beancount bal ; ; |-- Assets ; | |-- Checking -500.00 USD ; | |-- Health-Savings 300.25 USD ; | `-- US ; | `-- Govt ; | `-- PreTax 2,800.00 HSAUSD ; |-- Expenses ; | |-- Health 200.00 USD ; | `-- Taxes ; | `-- US ; | `-- TY2014 ; | `-- PreTax 500.00 HSAUSD ; `-- Income ; |-- Interest -0.25 USD ; `-- US ; `-- Govt ; `-- PreTax -3,300.00 HSAUSD
2015-04-14 * "Writing off unused contributions for 2014" Assets:US:Govt:PreTax -2800 HSAUSD Expenses:Taxes:US:TY2014:WriteOffs 2800 HSAUSD
Yes, you can match tags:
ledger -f d reg "tag("Taxes") =~ /^HSA*/'"