diff options
author | dbear496 <70439542+dbear496@users.noreply.github.com> | 2023-07-14 07:18:42 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2024-08-06 15:38:57 -1000 |
commit | 214cd078daba49774c52405f75ce65350300782c (patch) | |
tree | 8f947273d7a4452be4c93ac77b8dfdd8fc212d3e | |
parent | 2a23c3a14ed5d0cff564a5fb90d568df28eaeab4 (diff) | |
download | fork-ledger-214cd078daba49774c52405f75ce65350300782c.tar.gz fork-ledger-214cd078daba49774c52405f75ce65350300782c.tar.bz2 fork-ledger-214cd078daba49774c52405f75ce65350300782c.zip |
also copy costs that round to zero
-rw-r--r-- | src/xact.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xact.cc b/src/xact.cc index af93468f..49263e4d 100644 --- a/src/xact.cc +++ b/src/xact.cc @@ -836,7 +836,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 |