From 0b04f74a9ae69677556ae7d0f46a178c06f4c261 Mon Sep 17 00:00:00 2001 From: Me Date: Sat, 8 Dec 2018 03:34:28 +0100 Subject: [PATCH] add (shortened) ID column to timesheet output Signed-off-by: Me --- src/commands/CmdTimesheet.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/commands/CmdTimesheet.cpp b/src/commands/CmdTimesheet.cpp index 522e36a2b..254fa2fbc 100644 --- a/src/commands/CmdTimesheet.cpp +++ b/src/commands/CmdTimesheet.cpp @@ -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;