Skip to content
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

Filing account incorrect with schwab_csv_brokerage #72

Closed
redstreet opened this issue Jul 7, 2023 · 3 comments
Closed

Filing account incorrect with schwab_csv_brokerage #72

redstreet opened this issue Jul 7, 2023 · 3 comments

Comments

@redstreet
Copy link
Owner

redstreet commented Jul 7, 2023

Filing account when filed via bean-file is Assets:Investments:Taxable:Broker:{ticker}.

In 7e5caf3, this change was made:

When bean-file is called, filing_account has not been set (since initialize() is not run on a bean-file invoke), and main_account is used, which results in: Assets:Investments:Taxable:Broker:{ticker}.

@m-d-brown
Copy link
Contributor

I just encountered this myself, realizing I hadn't used bean-file when testing my change. Thank you for fixing before I even started debugging! I'm also surprised the regression test didn't catch this so I'll pay attention to #73.

@redstreet
Copy link
Owner Author

Ha, yes, a root issue here was Beancount's regression tester not matching how bean-file calls file_account, else the unit tests would've caught this. I'm a bit surprised at that, but realized that Beancount's inbuilt importers are basic, and don't rely on initialization like we do here.

#73 might need either an upstream change, or a bit of thinking on how to circumvent this in beancount_reds_importers, so I might not get to it for a while. But at least we know exactly what the issue is :).

@redstreet
Copy link
Owner Author

Unrelated to this thread, but thanks for the initial set of unit tests you submitted a couple months ago. That had been pending for a while, and was a much needed push!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants