by hardtoreason · 5y ago · 0 comments
(1) One of the hard problems in personal finance is data capture and input validation. Programs like QuickBooks and Xero don't just hide the GL because they're being mean, they're doing it because even experienced bookkeepers make mistakes on the general ledger all the time. "Since it's a text file it's easy to read" solves exactly the wrong problem: you want it to be easy to write, and easy to write CORRECTLY.
(2) They're the sort of solution that seems fantastic if you don't actually operate at scale. But once you start dealing with tens of transactions per day it simply is not sustainable.
Safe to say: I'm not really a fan.
Also I use a credit card for most of my expenses, and there are only a handful of bank transfers per month from my access account. Every first day of the month I pull out last month's credit card statement and log all the transactions. It usually takes less than 30 minutes.
[1]: https://github.com/roylez/dotfiles/blob/master/misc/bin/la
With hledger and vim, I typically search and copy a previous similar transaction, then search and copy similar items. I have a keybinding to change the date, so like 3\d changes the date of the transaction I copied to 3 days ago. Overall, being proficient in vim, capture takes very few keystrokes.
Since the files are plain text, I can easily e.g. list all products I've ever bought with a `grep | sort | uniq` pipeline, to check stuff like whether I put a product identifier under a wrong account or used different identifiers for the same product.
Also, since the files are plain text, I can track changes with git. That gives me clarity over changes in the sense that I can make a large change (e.g. reorganizing accounts) over historical transactions and review the changes before committing.
Regarding large changes, which I think is also a type of capture, I can easily make them with `sed -i ...`, vim macros, awk, etc.
> and input validation
After I've captured, running hb (which is a personal alias for `hledger balance`) results in hledger raising an error if a transaction is not balanced. I can also add an assertion `= X` to the end of account changes to assert what the account is supposed to hold after the change. The number comes from physically checking the account, whether that's by checking the bank app or opening my wallet and counting. hledger will raise an error when an assertion is wrong.
> Programs like QuickBooks and Xero
Being unfamiliar with QuickBooks and Xero, how would these programs do capture and validation better for me?
Most of the time, there's no need to remember. Just put the receipt in your pocket, and when you get home you can further postpone it by stacking it with other receipts on a receipt spike. It's only the cash transactions that are best not left postponed for longer than a day or 2, but if you just scribble down the important bits on a scrap of paper, you can postpone it like any other receipt.
I usually just hold onto the receipt for whatever I do until the end of the working day and get it entered that night. But if a receipt or my pay app isn't an option then I can enter the transaction right there on the phone before I forget.
Emacs users should look into Flycheck integration, eg https://hledger.org/editors.html#flycheck-hledger . Real time indication of parse and balance errors as you edit is nice!
It's also true for business accounting. Getting data into your accounting/ERP software is always a clusterfuck, and I've yet to see a process that didn't require many hours/days of reconciliation and posting manual journal entries to close a reporting period.
It's in the customers' best interest to have a universal format.
It's in no one else's (read: especially vendors) interest for there to be a universal format.
Which is why you generally only see it when it's mandated by a coordinating party in the middle (e.g. Medicare).
The challenge is that no two businesses are really alike, so it's difficult to create a standard that can capture all the nuance of running a business. GAAP/IFRS-compliant accounting requires double-entry accounting, so many ERP systems share a lot of the same things (account, debit/credit, accruals, receipt of goods, month-end close) that are needed to spit out the three sheets and other artifacts for financial reporting.
A running joke in the industry is that you don't customize your ERP for your business, but customize your business for your ERP. You end up with a lot of "middleware" that essentially adapts your operational systems into the format needed by the ERP to do its job, and your staff will design workflow processes specifically centered around how the ERP works for things like closing the books or managing inventory.
In the US, open banking would probably look more like "the IRS requires a bank to have accounts readable using these formats, or otherwise be able to provide same manually, when requested" to prod industry to do it.
But back to reality, everything in life is time-consuming. But, that is why it is so important to have a healthy profit margin and enough revenue in to hire a bookkeeper - so it takes you zero time.
But, even still, the real issue is that most business people don't know sh-t about accounting, don't know about accounting controls, don't know about so much, that they can't really evaluate anything anyways. How many companies have I been with or known someone that works at them that have been ripped off by embezzlement, because the company didn't know about controls. Too many. Rita Crundwell who was the Comptroller and Treasurer of the town of Dixon, Illinois is an especially juicy case of embezzlement. Crundwell stole nearly $2.5 million per year from the city. Crundwell with embezzling $53 million over the prior 22 years. And I think it was more, because she worked for a longer period than that, but no records were available. There was a great analysis of it, and wow, was it great. Just so fascinating.
I have a lot of experience in accounting and bookkeeping, so I really enjoy it. I don't know, it doesn't really take me a long time, I do it every day, so it takes me less than 4 or 5 minutes per day. Sometimes a little longer, sometimes less.
Record significant spendings, and account the rest as "other" - it should be the amount allowing to balance the ledger, given the current assets, income, and the significant spendings.
My problem with ledger was the absence of correct support for multi currency accounting.
Now I just use a simple discord bot to capture, which is synced to a private git repository
Messages look like
&out soba shop
Soba 800
Beer 700
Or &p #custom:category payee
Item (int cost)
Item (int cost)This is why I've started looking into tools which automate the data collection. In the UK (and EU more broadly), after Open Banking got introduced there are many apps popping out which basically connect to your accounts (Credit Cards, bank accounts, etc.) and combine all data into a single place. Does Plaid not enable this in the US?
It's not "100% accurate" but most enable you to do auto-categorisation, smart reporting and budgeting as well. They are not open-source but do much more than I'd ever be able to do with PTA (not because it's not supported but because it requires effort). Of the 2 bad solutions, they seem to be the less bad for me.
Some example apps: Emma, Yolt, Lumio.
Which mistake do you think is more common with PTA than with other programs?
2. What exactly would not be sustainable with PTA which would be with other programs?
(I wrote a text based ledger tool myself, and then switched to storing data in PostgreSQL)
The reporting and analytics functionality of the ledger-likes is AFAICT unrivaled, and is the REAL reason to use them (not the ostensibly easy-to-use “plain text” general ledger aspect, about which I agree with you)
What is the GL?