My personal accounting routine (PTA using ledger/hledger)
I have been sticking and developing this routine for the past year and I think I like it. I want to share this because I think everyone should at least try it. My ledger file is synced using git. I used both Termux and cone to operate on the file in my phone. Honestly, I had the thought to make an app just so that I don't need Termux anymore. It turns out that using both is just enough and perfect for my use case (git is already there in Termux, and I can do just about anything). Everytime I make a transaction, I immediately put that into my ledger file using cone (cone is opening my ledger file in Termux data files). And then, I touch a Termux shortcut widget on my home screen to run a script called `push_trx` which will create a commit and push that new commit. All Termux related ledger interactions are mapped in the shortcuts widget. For example, I have the shortcuts to check for balance (i.e. running `hledger balance`), to add a new transaction from a template, to show what I spent today, to undo the last transaction, to pull from the repo, and more. Whenever I feel like it, I reconcile my ledger file on my laptop manually. I pushed, then I pull from my phone. That's how it all went. And I am proud of it. ``` Transactions span : 2022-06-11 to 2023-10-01 (477 days) Last transaction : 2023-09-30 (1 days ago) Transactions : 3343 (7.0 per day) Transactions last 30 days: 211 (7.0 per day) Transactions last 7 days : 63 (9.0 per day) Payees/descriptions : 1181 Accounts : 134 (depth 5) Commodities : 10 (***) Market prices : 96 (***) Run time (throughput) : 0.30s (11089 txns/s) ``` If you are curious or want to hear more story or just want to look at the scripts, feel free to contact me and I will share everything. Can't share the scripts yet because it's in the same repository as my ledger files ;)Created: 2023-10-01 04:38:03, Updated: 2024-11-11 18:37:31, ID: f305c839-fb75-4423-8ed7-2aee95a23e17