diff options
| author | Nikolaus Gotsche <n@softwarefools.com> | 2019-03-30 00:57:02 +0100 |
|---|---|---|
| committer | Nikolaus Gotsche <n@softwarefools.com> | 2019-03-30 00:57:02 +0100 |
| commit | 31bea987b8e6fbcbe0c34f1ea5f2b96e436da41a (patch) | |
| tree | fb0328d533aadde8dd5a81b399374f2f42e7948b /sqlite.go | |
| parent | 8ae371a94cd1fa75e74e91960783648e82aaf031 (diff) | |
show invoice details0.3.9
Diffstat (limited to 'sqlite.go')
| -rw-r--r-- | sqlite.go | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -448,7 +448,9 @@ func ShowBill(in bill,fullest bool) { tsks = append(tsks,Task{id,prj,start,stop,tas,comm,chk}) } for _,t := range tsks { - addText += fmt.Sprintf("%sId: %v - Project: %v : %s\n",nli,t.Id,t.Projectid,t.Taskname) + stastr := t.Start.Local().Format("2006-01-02 15:04") + endstr := t.Stop.Local().Format("15:04") + addText += fmt.Sprintf("%sId: %v - Project: %v : %s (%s - %s)\n",nli,t.Id,t.Projectid,t.Taskname,stastr,endstr) } } fmt.Println(frame(boldGreen("Show Bill ", in.id),true)) @@ -463,7 +465,7 @@ func ShowBill(in bill,fullest bool) { fmt.Println(StrLines(ShowItems(in.items),nli)) if fullest { fmt.Println(sub("Billed Tasks")) - fmt.Println(addText) + fmt.Print(addText) } fmt.Println(frame("",false)) } |
