From 2a23c3a14ed5d0cff564a5fb90d568df28eaeab4 Mon Sep 17 00:00:00 2001 From: dbear496 <70439542+dbear496@users.noreply.github.com> Date: Thu, 13 Jul 2023 20:58:04 -0400 Subject: copy cost from automatic transaction posting fixes #2268 --- src/xact.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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 -- cgit v1.2.3