Skip to content

Commit

Permalink
also copy costs that round to zero
Browse files Browse the repository at this point in the history
  • Loading branch information
dbear496 committed Jul 14, 2023
1 parent d35e73a commit e2f64be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xact.cc
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,7 @@ 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)
if(! post->cost.is_null())
new_post->cost = post->cost;

// A Cleared transaction implies all of its automatic posting are cleared
Expand Down

0 comments on commit e2f64be

Please sign in to comment.