summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/xact.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/xact.cc b/src/xact.cc
index 0a080901..af93468f 100644
--- a/src/xact.cc
+++ b/src/xact.cc
@@ -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