Merge pull request #2080 from corbolais/2.6.0

add (shortened) ID column to timesheet output
This commit is contained in:
Paul Beckingham 2019-01-02 08:03:50 -05:00 committed by GitHub
commit 6fcbe2efbd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -119,6 +119,7 @@ int CmdTimesheet::execute (std::string& output)
table.add ("Wk");
table.add ("Date");
table.add ("Day");
table.add ("ID");
table.add ("Action");
table.add ("Project");
table.add ("Due");
@ -170,10 +171,11 @@ int CmdTimesheet::execute (std::string& output)
table.set (row, 0, (week != previous_week ? format ("W{1}", week) : ""));
table.set (row, 1, (date != previous_date ? date : ""));
table.set (row, 2, (day != previous_day ? day : ""));
table.set (row, 3, label);
table.set (row, 4, task.get ("project"));
table.set (row, 5, due);
table.set (row, 6, task.get ("description"), task_color);
table.set (row, 3, task.identifier(true));
table.set (row, 4, label);
table.set (row, 5, task.get ("project"));
table.set (row, 6, due);
table.set (row, 7, task.get ("description"), task_color);
previous_week = week;
previous_date = date;