working on printable PDF Forms
All checks were successful
Tests / Run Go Tests (push) Successful in 30s
All checks were successful
Tests / Run Go Tests (push) Successful in 30s
This commit is contained in:
@@ -19,7 +19,7 @@ type WorkDay struct {
|
||||
Absence Absence
|
||||
}
|
||||
|
||||
func (d *WorkDay) GetWorkDays(card_uid string, tsFrom, tsTo time.Time) []WorkDay {
|
||||
func GetWorkDays(card_uid string, tsFrom, tsTo time.Time) []WorkDay {
|
||||
var workDays []WorkDay
|
||||
var workSec, pauseSec float64
|
||||
|
||||
@@ -181,7 +181,7 @@ func (d *WorkDay) getWorkTime() {
|
||||
d.calcPauseTime()
|
||||
}
|
||||
|
||||
func (d *WorkDay) GetWorkTimeString() (string, string) {
|
||||
func (d *WorkDay) GetWorkTimeString() (work string, pause string) {
|
||||
workString := helper.FormatDuration(d.workTime)
|
||||
pauseString := helper.FormatDuration(d.pauseTime)
|
||||
return workString, pauseString
|
||||
|
||||
Reference in New Issue
Block a user