working on printable PDF Forms
All checks were successful
Tests / Run Go Tests (push) Successful in 30s

This commit is contained in:
2025-09-08 00:32:29 +02:00
parent 12ed9959cb
commit 2eab598348
12 changed files with 305 additions and 22 deletions

View File

@@ -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