Costunit
Field guide
The following fields are available in a costunit object
| Name | Type | Example | Notes |
|---|---|---|---|
| id | int | 3 | Costunit id |
| name | string | Paid holidays | Name of the costunit |
| description | string | Holidays that are paid by company | Description of costunit |
| status | int | 1 | See Status Types |
| assigns | collection | Collection of Assign Objects |
Example content of data variable:
{
"error":false,
"item":{
"id":1,
"name":"Lunch break",
"description":"",
"status":1,
"assigns":[
{
"id":4,
"employee":"John Doe",
"comment":"",
"hours":2,
"year":2013,
"month":2,
"day":26
}
]
}
}
Status
| Status | Meaning of status |
|---|---|
| 1 | Productive |
| 2 | Unproductive |
