pkg

package
v0.0.0-...-89b3d5b Latest Latest
Warning

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

Go to latest
Published: May 29, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IN_SHEET             = "Simple Invoice"
	IN_DATE              = "E4"
	IN_NUM               = "E5"
	IN_DESC              = "A20"
	IN_UNITS             = "C20"
	IN_RATE              = "D20"
	IN_AMOUNT            = "E20"
	IN_TOTAL             = "E37"
	IN_DESC_INTERVIEWS   = "A21"
	IN_UNITS_INTERVIEWS  = "C21"
	IN_RATE_INTERVIEWS   = "D21"
	IN_AMOUNT_INTERVIEWS = "E21"
	TIME_FORMAT          = "Jan 2, 2006"
)
View Source
const (
	SHEET_NAME              = "Sheet1"
	TS_PERIOD_START_DATE    = "B11"
	TS_PERIOD_END_DATE      = "B12"
	TS_CONSULTANT_SIGN_DATE = "K22"
	TS_TOTAL_ROW            = "AG15"
	TS_TOTAL_ALL            = "AG19"
)

Variables

This section is empty.

Functions

func CreateEmailBody

func CreateEmailBody(subject string, year int, month int, hours float64, rate float64, amount float64) string

func CreatePath

func CreatePath(year int, month int) (string, error)

func PrintInvoiceHistory

func PrintInvoiceHistory(months []*models.Invoice)

func PrintTSHistory

func PrintTSHistory(months []*models.Timesheet)

func PrintTSTable

func PrintTSTable(days []int, total int)

func SendEmail

func SendEmail(year int, month int, db *gorm.DB)

func WriteInvoice

func WriteInvoice(
	t int,
	year int,
	month int,
	path string,
	rate int,
	rateInt int,
	nInt int,
	db *gorm.DB,
) int

func WriteTimesheet

func WriteTimesheet(path string, year int, month int, exclude []int, db *gorm.DB) int

Types

This section is empty.

Jump to

Keyboard shortcuts

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