Documentation ¶
Index ¶
- func GetOtherHoursForDate(byuID string, employeeJobID int, date time.Time) structs.ElapsedTimeSummary
- func GetPunchesForJob(byuID string, jobID int) []structs.TimeClockDay
- func GetTimesheet(byuid string, db *bolt.DB) (structs.Timesheet, bool, error)
- func GetWorkOrderEntries(byuID string, employeeJobID int) []structs.WorkOrderDaySummary
- func GetWorkOrders(operatingUnit string) []structs.WorkOrder
- func SendDeletePunchRequest(byuID string, req structs.DeletePunch) ([]structs.TimeClockDay, *nerr.E)
- func SendDeleteWorkOrderEntryRequest(byuID string, jobID string, punchDate string, sequenceNumber string) (structs.WorkOrderDaySummary, *nerr.E)
- func SendFixPunchRequest(byuID string, req structs.Punch) ([]structs.TimeClockDay, *nerr.E)
- func SendLunchPunch(byuID string, req structs.LunchPunch) ([]structs.TimeClockDay, *nerr.E)
- func SendOtherHoursRequest(byuID string, body structs.ElapsedTimeEntry) (structs.ElapsedTimeSummary, *nerr.E, *http.Response, string)
- func SendPunchRequest(byuID string, req structs.Punch) (structs.Timesheet, *nerr.E, *http.Response)
- func SendWorkOrderUpsertRequest(byuID string, req structs.WorkOrderUpsert) (structs.WorkOrderDaySummary, *nerr.E)
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 ¶
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 ¶
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 ¶
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 ¶
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.