diff options
author | Naga Kiran <nagakiran.k@viamaan.com> | 2018-06-25 16:06:11 +0530 |
---|---|---|
committer | Naga Kiran <nagakiran.k@viamaan.com> | 2018-06-25 16:10:14 +0530 |
commit | 67578afa21630b19410a7e729005bf2b17fb9200 (patch) | |
tree | 5adc545de9136e5e1690aaaad82d34487c6b7d3e /src/timelog.cc | |
parent | ef0e1f543cb53c26638329b7591884d5e82f9fa1 (diff) | |
download | fork-ledger-67578afa21630b19410a7e729005bf2b17fb9200.tar.gz fork-ledger-67578afa21630b19410a7e729005bf2b17fb9200.tar.bz2 fork-ledger-67578afa21630b19410a7e729005bf2b17fb9200.zip |
Timelog: Not able to check-in to multiple accounts at a time
Checking-in to multiple accounts at a time throws the following error
"When multiple check-ins are active, checking out requires an account"
Issue is that the acount name was sent as 3rd parameter to time_xact_t
constructor whereas it is supposed to be sent as 4th parameter
Corrected the argument position of account name in constructor call to
time_xact_t
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 2a618afd..5b289a34 100644 --- a/src/timelog.cc +++ b/src/timelog.cc @@ -170,7 +170,7 @@ void time_log_t::close() foreach (account_t * account, accounts) { DEBUG("timelog", "Clocking out from account " << account->fullname()); context.count += clock_out_from_timelog - (time_xacts, time_xact_t(none, CURRENT_TIME(), account), context); + (time_xacts, time_xact_t(none, CURRENT_TIME(), false, account), context); } assert(time_xacts.empty()); } |