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

[feat] Add functionality to reverse activity back to a specified date. #3

Open
4 tasks
Dominion5254 opened this issue Mar 13, 2024 · 0 comments
Open
4 tasks

Comments

@Dominion5254
Copy link
Owner

Dominion5254 commented Mar 13, 2024

Adding a command to reverse activity going back to a specified date seems to be the best implementation as it would allow easy restoration of the DB to a previous state while honoring FIFO.

  • Delete Acquisition and Disposition lots post specified date.
  • Delete any corresponding AcquisitionDispositions.
  • Add back Disposed BTC from deleted AcquisitionDispositions to the corresponding Acquisition lot UndisposedSats.
  • mark-to-market entries could be impacted. Possibly warn the user of the unwinding of mark-to-market transactions and confirm they would like to proceed before reversing any activity that would impact a mark-to-market entry.

Reversing activity (presumably for a correction/adjustment) would result in changes to historic activity that may have already been booked in a previous period. The command should include warnings about re-running reports for periods that may have changed. User could then choose to update their books in the actual period or make a true-up entry by comparing ITD RGL activity from before and after the change.

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

1 participant