report

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2018 License: MIT Imports: 5 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 []*UserSchedulesSummary
}

type ScheduleData

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

type ScheduleUser

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

type UserSchedulesSummary added in v1.1.0

type UserSchedulesSummary struct {
	Name                         string
	NumWorkHours                 float32
	TotalAmountWorkHours         float32
	NumWeekendHours              float32
	TotalAmountWeekendHours      float32
	NumBankHolidaysHours         float32
	TotalAmountBankHolidaysHours float32
	TotalAmount                  float32
}

type Writer

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

func NewConsoleReport

func NewConsoleReport(currency string) Writer

func NewPDFReport

func NewPDFReport(currency string) Writer

Jump to

Keyboard shortcuts

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