One hours booking (urenboeking) by one employee on one day on one operation of a production order assembly. Time that isn't production work (presence, absence, indirect hours) is booked the same way on special orders; sub_operation_type tells the kinds apart.

Label in Fledge: Uren geboekte uren

URLhttps://odata-api.fledge.nl/v2-8/TimesheetEntries
Keyadministration_iddateemployee_idtimesheet_entry_id
AdministrationRows belong to one administration: always filter on administration_id.
OperationsGET listGET onePOSTPATCHDELETE
Read licensesBASISBASISAPPURENPC
Write licensesBASISBASISAPP
ScopesFLEDGE_PORTALFLEDGE_TERMINAL

Example requests

A page of rows, with only the fields you need. See Authentication for the token.

curl -G "https://odata-api.fledge.nl/v2-8/TimesheetEntries" \
  --data-urlencode '$filter=administration_id eq 1' \
  --data-urlencode '$select=date,employee_id,timesheet_entry_id,cluster_id,cost_sub_operation_post_calculation,end_time' \
  --data-urlencode '$top=50' \
  -H "Authorization: Bearer $TOKEN"
const url = new URL('https://odata-api.fledge.nl/v2-8/TimesheetEntries');
url.searchParams.set('$filter', 'administration_id eq 1');
url.searchParams.set('$select', 'date,employee_id,timesheet_entry_id,cluster_id,cost_sub_operation_post_calculation,end_time');
url.searchParams.set('$top', '50');

const response = await fetch(url, { headers: { Authorization: `Bearer ${token}` } });
const { value } = await response.json();
var url = "https://odata-api.fledge.nl/v2-8/TimesheetEntries" + "?" + string.Join("&",
    "$filter=" + Uri.EscapeDataString("administration_id eq 1"),
    "$select=" + Uri.EscapeDataString("date,employee_id,timesheet_entry_id,cluster_id,cost_sub_operation_post_calculation,end_time"),
    "$top=" + Uri.EscapeDataString("50"));

http.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token);
var json = await http.GetStringAsync(url);

One row by its key:

GET https://odata-api.fledge.nl/v2-8/TimesheetEntries(administration_id=1,date={date},employee_id={employee_id},timesheet_entry_id={timesheet_entry_id})

Fields

FieldTypeDescription
administration_idkeyInt32Administratienummer
employee_idkeyInt32Medewerkernummer: Medwerkernummer
datekeyDateDatum
timesheet_entry_idkeyInt32Volgnr: Volgnummer om meerdere keren op zelfde orderschrapnr te kunnen boeken.

A sequence number within the employee's day, not unique on its own.

cluster_idInt32Clusternummer

Groups the entries of one employee and day that were started together on several production orders, numbered per employee per day; 0 when the entry stands alone. Not a link to OperationClusters.

cost_sub_operation_post_calculationDecimalKostprijs bewerking in nacalculatie

The operation's cost rate when the entry was written.

date_createdDateTimeOffsetAangemaakt: Aanmaakdatum en -tijd
date_updatedDateTimeOffsetGewijzigd: Datum/tijd laatste wijziging
day_number_since_1900Int32Dagnr_1900: Dagnummer sinds 01-01-1900
day_number_within_weekInt32Dag nr: Dagnummer binnen week.
declaration_price_machineDecimalDeclaratieprijs machine uren
declaration_price_man_hoursDecimalDeclaratieprijs manuren
declaration_price_totalDecimalDeclarabele prijs totaal.
employee_function_hourly_rateDecimalFunctietarief man
employee_grouping_1_idInt32Indeling1
employee_grouping_2_idInt32Indeling2
end_dateDateEinddatum urenboeking
end_timeInt32Eindtijd

Seconds since midnight on end_date; empty while the booking is still running.

financial_period_idInt32Periode nummer
financial_yearInt32Boekjaar
has_overtime_machine_correctionBooleanOv_mach correctie: Geeft aan of de overuren van de machine handmatig gecorrigeerd zijn of niet.
hour_status_clockInt32Klokstatus: Status van een urenrecord ingevoerd met de klok.
hours_workedDecimalAantal werkuren op de dag waarvoor de boeking gedaan is.

The employee's working hours of that day, not the length of this booking.

human_time_in_secondsDecimalOrderuren (in sec).

The booked man time in seconds for total-time entries (input_type 2). For start and end entries (input_type 1) it can be 0: compute the length from start and end.

input_typeInt32Wijze invoer: Wijze van invoeren: b.v. begin- + eindtijd of totaaltijd
  • 1 Start and end time
  • 2 Total time
is_counter_bookingBooleanLogical die aangeeft of een boeking een tegenboeking is of niet.
is_early_or_lateBooleanReden vl: Geeft aan of het record een reden te vroeg weg of te laat aanwezig is
is_overtime_fixedBooleanOverwerk gefixeerd: Geeft aan of het overwerk van het record gefixeerd is of niet.
is_overtime_suppressedBooleanGeeft aan of ov onderdrukt is of niet.
is_setup_operationBooleanInstelbewerking
machine_costDecimalKostprijs machine uren
machine_time_in_secondsInt32Machine uren

Machine time in seconds.

main_operation_idInt32Hoofdbewerkingsnummer
man_hour_costDecimalKostprijs manuren
memoStringMemo
memo_2StringMemo
month_numberInt32Maandnummer
originInt32Bron: Geeft aan hoe het record is ingevoerd, b.v. PC-kantoor, PC-hal of klok-hal.

How the entry was made: 3 the web app (also the hours approval overview's "Uren toevoegen"), 4 a PC terminal, 5 generated by hours processing, 6 web; 2 an entry of a total time made through the Fledge API.

overrun_machine_post_calculationDecimalOpslagperc. machine uren: Opslagpercentage machine uren van de order
overrun_manual_post_calculationDecimalOpslagperc. manuren: Opslagpercentage manuren van productieorder
overtime_1Int32Overwerk 1
overtime_1_machineInt32Overwerk 1 mach.: Overwerk 1 voor machine
overtime_2Int32uren overwerk 2
overtime_2_machineInt32Overwerk 2 Mach.: Overwerk 2 voor machine
overtime_3Int32uren overwerk 3
overtime_3_machineInt32Overwerk 3 mach.: Overwerk 3 voor machine.
overtime_4Int32uren overwerk 4
overtime_4_machineInt32Overwerk 4 mach.: Overwerk 4 voor machine.
overtime_5Int32uren overwerk 5
overtime_5_machineInt32Overwerk 5 mach.: Overwerk 5 voor machine.
period_4_weeksInt324Week nummer
pre_calculation_sub_operation_idInt32Volgnummer

The planned operation line it was booked on, within the order, assembly and main operation.

production_code_idInt32Produktiecodenummer
production_order_assembly_idInt32Orderschrapnummer
production_order_header_idStringOrdernummer
schedule_idInt32Schemanummer
team_idInt32Ploegnummer

The employee's team (ploeg) when the entry was made; it doesn't follow a later team change. Join Teams on it.

start_dateDateBegindatum boeking
start_timeInt32Begintijd

Seconds since midnight on start_date.

statusInt32Status urenverwerking
  • 0 Booked, not approved yet (Geboekt)
  • 1 Approved (Goedgekeurd)
  • 2 Provisionally processed (Voorlopig verwerkt)
  • 4 Processed (Definitief verwerkt)
  • -1 Rejected (Afgekeurd)
sub_operation_billable_rateDecimalDeclarabel tarief van bewerking (incl. mantarief).
sub_operation_idInt32Subbewerkingsnummer
sub_operation_typeInt32Soort bewerking (prod, niet prod, ...).
  • 1 Productive (Productief)
  • 2 Not productive, indirect (Niet productief)
  • 3 Absent (Afwezig)
  • 4 Travel (Reisuren)
  • 5 Present (Aanwezig)
sub_operation_weighting_percentageInt32Wegingspercentage: Weginspercentage van de subbewerking
total_costDecimalKostprijs totaal.

Filled when the hours are processed.

week_numberInt32Week nr: Weeknummer

A week number derived from date; its definition isn't documented. Group by date for weeks.

Relations

Read a related row or list in the same request with $expand, and give it its own $select; a list also needs a $top.

NavigationEntity set
AdministrationAdministrationsone
EmployeeEmployeesone
EmployeeGrouping1EmployeeGrouping1sone
EmployeeGrouping2EmployeeGrouping2sone
EmployeeScheduleHeaderEmployeeScheduleHeadersone
HistoricProductionOrderAssemblyHistoricProductionOrderAssembliesone
HistoricProductionOrderHeaderHistoricProductionOrderHeadersone
MainOperationMainOperationsone
PreCalculationSubOperationPreCalculationSubOperationsone
ProductionCodeProductionCodesone
ProductionOrderAssemblyProductionOrderAssembliesone
ProductionOrderHeaderProductionOrderHeadersone
SubOperationSubOperationsone
TeamTeamsone
TimesheetJournalEntryLinksTimesheetJournalEntryLinksmany

Actions

approve

POST https://odata-api.fledge.nl/v2-8/TimesheetEntries(administration_id=1,date={date},employee_id={employee_id},timesheet_entry_id={timesheet_entry_id})/approve
  • memo String
  • memo_2 String

Returns TimesheetEntry

Licenses: BASIS, BASISAPP, PRODUCTIE

approve

POST https://odata-api.fledge.nl/v2-8/TimesheetEntries/approve
  • TimesheetEntries TimesheetEntryKeyDto[]
    • administration_id Int32
    • employee_id Int32
    • date Date
    • timesheet_entry_id Int32
  • memo String
  • memo_2 String

Returns TimesheetEntry[]

Licenses: BASIS, BASISAPP, PRODUCTIE

disapprove

POST https://odata-api.fledge.nl/v2-8/TimesheetEntries(administration_id=1,date={date},employee_id={employee_id},timesheet_entry_id={timesheet_entry_id})/disapprove
  • memo String
  • memo_2 String

Returns TimesheetEntry

Licenses: BASIS, BASISAPP, PRODUCTIE

disapprove

POST https://odata-api.fledge.nl/v2-8/TimesheetEntries/disapprove
  • TimesheetEntries TimesheetEntryKeyDto[]
    • administration_id Int32
    • employee_id Int32
    • date Date
    • timesheet_entry_id Int32
  • memo String
  • memo_2 String

Returns TimesheetEntry[]

Licenses: BASIS, BASISAPP, PRODUCTIE

Wingman