Closed debben closed 2 years ago
Here's the summary:
Could you try this out and let me know if you see any more problems, either by running it or in the code?
Again, thanks so much for reporting and helping fix such tricky bugs!
The changes look good. I checked again against my actual 2021 data and "golden copy" pdf report from the exchange and everything is matching up.
Nice, I'll go ahead and merge then. If you see any more problems, just open a new issue or PR. Thanks!
I ended up refactoring the entire accounting method plugin infrastructure. Now it's possible to build a new accounting method by defining only two small methods: see the new, simplified LIFO and HIFO. This should not only make it easier to write new plugins but also less error-prone (because most of the implementation is now common and factored in the superclass).
@debben can I ask you to try your test with this new implementation? All of our tests are passing, but I'd like to make sure your test is passing as well. Thanks.
I gave the latest of main another run against my 2021 data. The HIFO report matches my golden copy from the exchange.
Great, thanks!
Get the highest cost basis non-exhausted lot, not just the first non-exhausted. Fixes #73.