En arbetsorder(workorder) innehåller en eller flera arbetsorderrader(workorderlines) där varje enskild arbetsorderrad utgör en tjänst. Utifrån hur arbetsorderraden är definierad skapas bokningar. Ändringar av startdate, starttime, enddate, endtime, discount eller quantity påverkar alla missions framåt i tiden.
findBy…/ |
type |
---|---|
id |
int |
recurrencyinterval_id |
int |
is_groupbooking |
bool |
workorder_id |
int |
deleted |
bool |
infinite |
bool |
discount |
float |
description |
string |
closed |
bool |
start_date |
date |
end_date |
date |
start_time |
time |
end_time |
time |
POST
Field | Type | |
workorder_id |
int | Mandatory |
startdate |
date | Mandatory |
service_id |
int |
Mandatory Look here for possible IDs |
recurrencyinterval_id |
int |
Optional Leave blank if one-off booking (enstaka) or group (grupp) For possible ids look here |
is_groupbooking |
bool | optional |
starttime |
time | |
enddate |
date | |
endtime |
time | |
quantity |
float | |
unit_price |
float | Will asumme the service's default value as set in the system if not specified. |
discount |
float |
Optional Default value = 0 A value between 0 and 100. The value 100 equals 100 %. |
description |
text |
Optional Will be shown on the invoice. |
visible_invoice |
bool |
Will assume the service's default value as set in the system if not specified. |
sms_pre_send_days |
int |
Will assume the service's default value as set in the system if not specified 0 = will not be sent |
sms_approval_send |
bool | Will assume the service's default value as set in the system if not specified. |
employees [{ id salary_hourlyrate }] |
int float
|
|
resources [{ id }] |
int |
POST - workorderlines/services
Lägg till tjänst som Arbetsorderunderrad
Field | Type | |
workorderline_id | int | Mandatory |
service_id | int | Mandatory |
quantity | float | Optional |
unit_price | float |
Optional Default to the services unit price as set in the system if not specified. |
discount | float |
Optional A percentage between 0 and 100 %. The value 100 equals 100 %. Default = 0 |
description | text |
Optional Will be shown on invoice. |
visible_invoice | bool |
Optional Default = true |
POST - workorderlines/materials
Lägg till material som Arbetsorderunderrad
Field | Type | |
workorderline_id | int | Mandatory |
material_id | int | Mandatory |
quantity | float | Optional |
unit_price | float |
Optional Default to the services unit price as set in the system if not specified. |
discount | float |
Optional A percentage between 0 and 100 %. The value 100 equals 100 %. Default = 0 |
description | text |
Optional Will be shown on invoice. |
visible_invoice | bool |
Optional Default = true |
POST - workorderlines/outlays
Lägg till utlägg till Arbetsorderrad
Field | Type | |
Workorderline_id | Integer | Mandatory |
Employee_id | Integer | Mandatory |
Outlay_id | Integer |
Mandatory, need to exist in outlays at https://[domain].timewave.se/supplements/outlays |
Discount | Between 0 and 100
|
|
Amount | Integer | Min: 0 |
Price_per_unit | Float |
Min: 0. Sometimes not allowed to be manipulated. Depends on system outlay setting. |
Markup | Float |
Min: 0. Sometimes not allowed to be manipulated. Depends on system outlay setting. |
to_invoice | boolean |
Is customer to be billed the cost? |
outlay_by | enum (workarea, employee) |
Sometimes not allowed to be manipulated. Depends on system outlay setting. |
description | string |
|
PUT - workorderlines
Field | Type |
startdate |
date |
starttime |
time |
enddate |
date |
endtime |
time |
quantity |
float |
unit_price |
float |
discount |
float |
description |
text |
visible_invoice |
bool |
sms_pre_send_days |
int |
sms_approval_send |
bool |
Postman