summaryrefslogtreecommitdiff
path: root/interact.go
diff options
context:
space:
mode:
authorNikolaus Gotsche <n@softwarefools.com>2018-09-10 01:29:27 +0200
committerNikolaus Gotsche <n@softwarefools.com>2018-09-10 01:29:27 +0200
commit3b4bc634700694a4d84a23f6b6700a5484065736 (patch)
treea6d91817b907d9a8de87e7fede1fc187b7d8b959 /interact.go
parent4a4f372605d56f2241699da6a5bf8dae7eda2b86 (diff)
Tasks Checked Bills nicely TeX Rendered
Diffstat (limited to 'interact.go')
-rw-r--r--interact.go12
1 files changed, 11 insertions, 1 deletions
diff --git a/interact.go b/interact.go
index 918b2a9..b494222 100644
--- a/interact.go
+++ b/interact.go
@@ -399,7 +399,7 @@ func interact() {
}else{break}
}
c.Printf("%T %v - %T %v\n",tsk,tsk,hrf,hrf)
- allitems = append(allitems,billitem{tsk,itdur,hrf,hrf*cust.satz})
+ allitems = append(allitems,billitem{tsk,itdur,hrf,Round(hrf*cust.satz,5)})
c.Print("<<Continue>>")
c.ReadLine()
//c.ShowPrompt(true)
@@ -408,11 +408,21 @@ func interact() {
c.Println(green("Bill Completed"))
fullbill := bill{billid,billident,dur,proj.id,proj.name,time.Time{},time.Time{},allitems}
saveBill(fullbill)
+ checkTasks(selids,billid)
+ c.ProgressBar().Indeterminate(true)
+ c.ProgressBar().Start()
testid := []int{billid}
testbill := loadBills(testid)
//c.Println(testbill[0].projectname,testbill[0].items)
files := billTemplate(testbill[0],cust)
c.Println(files)
+ err = runLatex(files.Main,testbill[0].identity)
+ c.ProgressBar().Stop()
+ if err== nil {
+ c.Println("Finished without Errors")
+ }else{
+ c.Println("Finished with error:",err)
+ }
c.Print("<<Continue>>")
c.ReadLine()
stdOut()