diff options
author | John Wiegley <johnw@newartisans.com> | 2012-05-07 01:53:53 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2012-05-07 01:53:53 -0500 |
commit | c0fa144ca586bfc3d48d7f2512bb90ebdde148df (patch) | |
tree | 98e03564cf1e4297723edf5d7576290baa12df2b /src/timelog.cc | |
parent | 6a0daf634fa76ba61ea79e55e4d3f213aa27e306 (diff) | |
download | fork-ledger-c0fa144ca586bfc3d48d7f2512bb90ebdde148df.tar.gz fork-ledger-c0fa144ca586bfc3d48d7f2512bb90ebdde148df.tar.bz2 fork-ledger-c0fa144ca586bfc3d48d7f2512bb90ebdde148df.zip |
Added "last_checkout_cleared" valexpr variable
Diffstat (limited to 'src/timelog.cc')
-rw-r--r-- | src/timelog.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/timelog.cc b/src/timelog.cc index e84e4188..9516ba17 100644 --- a/src/timelog.cc +++ b/src/timelog.cc @@ -62,7 +62,7 @@ namespace { VERIFY(amt.valid()); post_t * post = new post_t(in_event.account, amt, POST_VIRTUAL); - post->set_state(item_t::CLEARED); + post->set_state(out_event.completed ? item_t::CLEARED : item_t::UNCLEARED); post->pos = in_event.position; post->checkin = in_event.checkin; post->checkout = out_event.checkin; |