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

copy cost from automatic transaction postings #2272

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

dbear496
Copy link
Contributor

@dbear496 dbear496 commented Jul 14, 2023

This fixes #2268 by preserving the cost from automatic transactions and reflecting it in target transactions.

@dbear496
Copy link
Contributor Author

It is possible that copying the cost should go in post_t::copy_details instead of in xact_t::extend_xact. But it is not entirely clear to me what the copy_details method is supposed to do. It really begs the question, "which details?" Why does it not already copy things like cost, assigned_amount, account, etc.? Also, I do not really understand why copy_details is called from the copy constructor--that appears redundant.

@dbear496
Copy link
Contributor Author

Hey, I'm not sure why this PR never got reviewed and also PR #2274 , but I'd like to bring them to the surface. @afh

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

Successfully merging this pull request may close these issues.

trading between commodities in automatic transaction does not balance
1 participant