Docs

Get Supplied Timesheet

GET /timesheets/supplied

GET/timesheets/supplied

Returns the organization's supplied-labor timesheet for the week containing periodStart (YYYY-MM-DD; today when omitted), snapped to timesheetWeekStart as Timesheets_GetTimesheet is. Groups: an event order line's unnamed heads; an org order line's vendor-supplied heads, across every event that booked them, or its vendor labor the org uses itself; else a need for a planning quantity hold. Rows carry plan and actual blocks and hours per day: plan times held heads, each actual block's hours times the heads that worked it (its heads; workedHeads is what was entered). Each actual block carries its own approval; a row's approval and a group's approvedBlockCount of actualBlockCount read the shifts starting in the week. Each order-line group carries the whole line's approved hours and head-days beside the same vendor's invoiced Hour and Day lines (never the week's); invoice hours on a need that reserved heads of several org lines come once in sharedEventHours. Write event rows with the reservation schedule-block routes (workedHeads per shift) on that event's token, org rows with the same routes on an org token; approve or reopen shifts with Reservations_SetScheduleBlockActualsApproval. Requires ResourceInventory.Read.

Query Parameters

FieldTypeRequiredDescription
periodStartdateOptional

Response

FieldTypeDescription
periodStartdate-time
periodEnddate-time
weekStartstring| null
groupsGetSuppliedTimesheetResponseGroupInfo[]| null
sharedEventHoursGetSuppliedTimesheetResponseSharedEventHoursInfo[]| null

GetSuppliedTimesheetResponseGroupInfo

FieldTypeDescription
keyuuid
kindstring| null
eventIduuid| null
eventNamestring| null
orderIduuid| null
orderNamestring| null
orderLineItemIduuid| null
dispositionstring| null
vendorNamestring| null
procurementResourceIduuid| null
needLabelstring| null
procurementNamestring| null
resourceTypeNamestring| null
planHoursnumber
actualHoursnumber
approvedBlockCountinteger
actualBlockCountinteger
approvalStatestring| null
reconciliationGetSuppliedTimesheetResponseReconciliationInfo
daysGetTimesheetResponseDayInfo[]| null
rowsGetSuppliedTimesheetResponseRowInfo[]| null

GetSuppliedTimesheetResponseSharedEventHoursInfo

FieldTypeDescription
procurementResourceIduuid
eventIduuid| null
eventNamestring| null
needLabelstring| null
orderNamesstring[]| null
hoursnumber
daysnumber| null
uncomparedLinesGetSuppliedTimesheetResponseInvoiceLineInfo[]| null

GetSuppliedTimesheetResponseReconciliationInfo

FieldTypeDescription
approvedHoursnumber
invoicedHoursnumber
hoursDifferencenumber
approvedHeadDaysnumber
invoicedDaysnumber| null
daysDifferencenumber| null
vendorUnknownboolean
uncomparedLinesGetSuppliedTimesheetResponseInvoiceLineInfo[]| null

GetTimesheetResponseDayInfo

FieldTypeDescription
datedate
planHoursnumber
actualHoursnumber
statesGetTimesheetResponseStateTag[]| null

GetSuppliedTimesheetResponseRowInfo

FieldTypeDescription
resourceReservationIduuid| null
eventReservationIduuid| null
eventIduuid| null
eventNamestring| null
procurementNamestring| null
resourceTypeNamestring| null
isVendorSuppliedHeadboolean
headNamestring| null
originstring| null
statusstring| null
actualsApprovalStatestring| null
actualsApprovalActualsApprovalInfo
awaitsFirstActualboolean
shiftsGetTimesheetResponseShiftInfo[]| null
quantitynumber
daysGetTimesheetResponseDayInfo[]| null
planBlocksGetTimesheetResponseBlockInfo[]| null
actualBlocksGetTimesheetResponseBlockInfo[]| null

GetSuppliedTimesheetResponseInvoiceLineInfo

FieldTypeDescription
iduuid
descriptionstring| null
unitstring| null
countnumber
quantitynumber

GetTimesheetResponseStateTag

FieldTypeDescription
stateIduuid
namestring| null
colorstring| null
iconstring| null
sortOrderinteger
isActualboolean

ActualsApprovalInfo

FieldTypeDescription
statestring| null
approvedAtdate-time| null
approvedByUserIduuid| null
approvedByNamestring| null

GetTimesheetResponseShiftInfo

FieldTypeDescription
planBlockIduuid
startdate-time
enddate-time
statestring| null
arrivedAtdate-time| null
heldByReservationIduuid| null
awaitsFirstActualboolean
closedWithNoHoursGetTimesheetResponseNoHoursClosureInfo
hasActualsboolean| null

GetTimesheetResponseBlockInfo

FieldTypeDescription
iduuid
typeIduuid| null
eventBlockTypeIduuid| null
typeNamestring| null
namestring| null
startDateTimedate-time
endDateTimedate-time
notesstring| null
activityIduuid| null
areaIduuid| null
collaboratorIduuid| null
approvalActualsApprovalInfo
workedHeadsnumber| null
headsnumber| null