Skip to content

Commit

Permalink
copy cost from automatic transaction posting
Browse files Browse the repository at this point in the history
fixes #2268
  • Loading branch information
dbear496 authored and jwiegley committed Aug 7, 2024
1 parent 9b3af74 commit 2a23c3a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/xact.cc
Original file line number Diff line number Diff line change
Expand Up @@ -836,6 +836,8 @@ void auto_xact_t::extend_xact(xact_base_t& xact, parse_context_t& context)
// the automated xact's one.
post_t * new_post = new post_t(account, amt);
new_post->copy_details(*post);
if(post->cost)
new_post->cost = post->cost;

// A Cleared transaction implies all of its automatic posting are cleared
// CPR 2012/10/23
Expand Down

0 comments on commit 2a23c3a

Please sign in to comment.