ytimeapi

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOtherHoursForDate

func GetOtherHoursForDate(byuID string, employeeJobID int, date time.Time) structs.ElapsedTimeSummary

GetOtherHoursForDate gets the other hours for a job for a specitic date from WSO2

func GetPunchesForJob

func GetPunchesForJob(byuID string, jobID int) []structs.TimeClockDay

GetPunchesForJob gets a list of serverside TimeClockDay structures from WSO2

func GetTimesheet

func GetTimesheet(byuid string, db *bolt.DB) (structs.Timesheet, bool, error)

GetTimesheet returns a timesheet, a bool if the timesheet was returned in offline mode (from cache), and possible error

func GetWorkOrderEntries

func GetWorkOrderEntries(byuID string, employeeJobID int) []structs.WorkOrderDaySummary

GetWorkOrderEntries gets all the work order entries for a particular job from WSO2

func GetWorkOrders

func GetWorkOrders(operatingUnit string) []structs.WorkOrder

GetWorkOrders gets all the possilbe work orders for the day from WSO2

func SendDeletePunchRequest

func SendDeletePunchRequest(byuID string, req structs.DeletePunch) ([]structs.TimeClockDay, *nerr.E)

SendDeletePunchRequest sends a delete punch request to the YTime API and returns the response.

func SendDeleteWorkOrderEntryRequest

func SendDeleteWorkOrderEntryRequest(byuID string, jobID string, punchDate string, sequenceNumber string) (structs.WorkOrderDaySummary, *nerr.E)

SendDeleteWorkOrderEntryRequest sends a delete work order entry request to the YTime API and returns the response

func SendFixPunchRequest

func SendFixPunchRequest(byuID string, req structs.Punch) ([]structs.TimeClockDay, *nerr.E)

SendFixPunchRequest sends a punch request to the YTime API and returns the response.

func SendLunchPunch

func SendLunchPunch(byuID string, req structs.LunchPunch) ([]structs.TimeClockDay, *nerr.E)

SendLunchPunch sends a lunch punch request to the YTime API and returns the response.

func SendOtherHoursRequest

func SendOtherHoursRequest(byuID string, body structs.ElapsedTimeEntry) (structs.ElapsedTimeSummary, *nerr.E, *http.Response, string)

SendOtherHoursRequest sends a sick/vacation request to the YTime API and returns the response (if no problem), and error, as well as the http response and body

func SendPunchRequest

func SendPunchRequest(byuID string, req structs.Punch) (structs.Timesheet, *nerr.E, *http.Response)

SendPunchRequest sends a punch request to the YTime API and returns the response.

func SendWorkOrderUpsertRequest

func SendWorkOrderUpsertRequest(byuID string, req structs.WorkOrderUpsert) (structs.WorkOrderDaySummary, *nerr.E)

SendWorkOrderUpsertRequest .

Types

This section is empty.

Jump to

Keyboard shortcuts

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