Costunit

Field guide

The following fields are available in a costunit object

NameTypeExampleNotes
idint3Costunit id
namestringPaid holidaysName of the costunit
descriptionstringHolidays that are paid by companyDescription of costunit
statusint1See Status Types
assignscollectionCollection 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

StatusMeaning of status
1Productive
2Unproductive