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.h | |
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.h')
-rw-r--r-- | src/timelog.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/timelog.h b/src/timelog.h index 857952ff..a902c084 100644 --- a/src/timelog.h +++ b/src/timelog.h @@ -56,6 +56,7 @@ class time_xact_t { public: datetime_t checkin; + bool completed; account_t * account; string desc; string note; @@ -66,16 +67,18 @@ public: } time_xact_t(const optional<position_t>& _position, const datetime_t& _checkin, - account_t * _account = NULL, - const string& _desc = "", - const string& _note = "") - : checkin(_checkin), account(_account), desc(_desc), note(_note), + const bool _completed = false, + account_t * _account = NULL, + const string& _desc = "", + const string& _note = "") + : checkin(_checkin), completed(_completed), account(_account), + desc(_desc), note(_note), position(_position ? *_position : position_t()) { TRACE_CTOR(time_xact_t, - "position_t, datetime_t, account_t *, string, string"); + "position_t, datetime_t, bool, account_t *, string, string"); } time_xact_t(const time_xact_t& xact) - : checkin(xact.checkin), account(xact.account), + : checkin(xact.checkin), completed(xact.completed), account(xact.account), desc(xact.desc), note(xact.note), position(xact.position) { TRACE_CTOR(time_xact_t, "copy"); } |