-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
alliant: Balance is based on the beginning, not the end, of the ofx file #101
Comments
I've not come across that before, and that's annoying! One thing I'd suggest trying is to examine their qfx file to see if they have a second balance field somewhere showing the ending balance. You can use If indeed there is no ending balance, I would simply create a balance assertion as provided by the qfx: on the date and amount that the qfx claims. Creating a synthetic balance assertion as you suggest (using initial + sum of transactions) IMHO goes a bit against the value of the check that balance assertions create. There is no way to know if there is an error or exclusion in the list of transactions. Using such assertione makes debugging the journal difficult. Thoughts? |
Unfortunately, there's no second balance -- the .qfx file attached above is a redacted, but actual file from Alliant. The date that it gives is also a lie; it gives you the ending date, but the value is actually the starting value. I'm not sure how this hasn't broken a bunch of stuff for a bunch of people -- maybe Quicken simply ignores the ledger balance completely? |
I figured out what's going on. It's been staring me in the face for months now, but the answer is so dumb that I couldn't see it. The entire .qfx file is in reversed order. The transactions are newest-first, and even better, the start date is after the end date. In the example .qfx file I gave above, for example, I'm just going to override the method and we'll do the balance assertion for the first date. It means that we're always one statement behind, but at least it helps enforce that we got the last import correct. |
Heh, glad you discovered that. I missed it too. Generally, qfx files from most institution have been well formatted and non-quirky. It's csvs that are usually all over the place. So they have a starting balance. Strange, but as you say, it's still useful for the prior import. |
I'm not sure if this is a variation anyone has seen before, but seemingly the .qfx files that Alliant sends out has the ledger balance as of the beginning of the transaction list, not at the end of it. For example, in an account with a previous balance of $1000.00, an OFX file containing the set of transactions [+0.33, +555.55, -555.55] has a reported ledger balance of $1000.00, not $1000.33 as should be expected.
I've attached a redacted version of an exemplar QFX file, though it's not particularly useful without knowing that the balance on March 15th was $1000.00 and that there were no subsequent transactions not covered by this file.
2024-03-08.History-040724-014519.qfx.txt
@redstreet, none of the
balance_assertion_fudge_date
options seem to cover this (admittedly stupid) case. I could solve it by adding afirst_transaction
option, or I could just patch the Alliant importer to sum the transactions and add it to the ledger balance. Thoughts?The text was updated successfully, but these errors were encountered: