report

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 7, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PrintableData

type PrintableData struct {
	Start                 time.Time
	End                   time.Time
	SchedulesData         []*ScheduleData
	UsersSchedulesSummary []*ScheduleUser
}

type ScheduleData

type ScheduleData struct {
	ID        string
	Name      string
	RotaUsers []*ScheduleUser
}

type ScheduleUser

type ScheduleUser struct {
	Name                         string
	NumWorkHours                 float32
	NumWorkDays                  float32
	TotalAmountWorkHours         float32
	NumWeekendHours              float32
	NumWeekendDays               float32
	TotalAmountWeekendHours      float32
	NumBankHolidaysHours         float32
	NumBankHolidaysDays          float32
	TotalAmountBankHolidaysHours float32
	TotalAmount                  float32
}

type Writer

type Writer interface {
	GenerateReport(data *PrintableData) (string, error)
}

func NewConsoleReport

func NewConsoleReport(currency string) Writer

func NewCsvReport added in v1.4.0

func NewCsvReport(currency string, outPath string) Writer

func NewPDFReport

func NewPDFReport(currency string, outPath string) Writer

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL