summaryrefslogtreecommitdiff
path: root/interact.go
diff options
context:
space:
mode:
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()