diff options
author | dbear496 <70439542+dbear496@users.noreply.github.com> | 2023-07-14 07:27:23 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2024-08-06 15:38:57 -1000 |
commit | c7440397a5bd5b1b7d8d3976762663fdb65e1ada (patch) | |
tree | adc3fc00977ec9f0aa7ca92fa8a8035c007ebeed /src/xact.cc | |
parent | 214cd078daba49774c52405f75ce65350300782c (diff) | |
download | fork-ledger-c7440397a5bd5b1b7d8d3976762663fdb65e1ada.tar.gz fork-ledger-c7440397a5bd5b1b7d8d3976762663fdb65e1ada.tar.bz2 fork-ledger-c7440397a5bd5b1b7d8d3976762663fdb65e1ada.zip |
Revert "also copy costs that round to zero"
This reverts commit e2f64be216506b51c029147982f1addc50f4c745.
post->cost is actually of type optional, so the cast to bool iscorrect.
Diffstat (limited to 'src/xact.cc')
-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 49263e4d..af93468f 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.is_null()) + if(post->cost) new_post->cost = post->cost; // A Cleared transaction implies all of its automatic posting are cleared |