{
    "rest": true,
    "allowMapping": true,
    "type": "timeentry",
    "id": "timebill",
    "criteria": "timebill",
    "select": "employee.isJobResource",
    "where": "WHERE employee.isJobResource = 'T'",
    "inner": "INNER JOIN employee ON timebill.employee = employee.id",
    "mapping": {
        "employee": "employee",
        "trandate": "tranDate",
        "hours": "hours",
        "project": "customer",
        "memo": "memo",
        "isbillable": "isBillable",
        "payrollitem": "payrollItem",
        "paidexternally": "paidExternally",
        "subsidiary": "subsidiary",
        "billingsubsidiary": "billingSubsidiary",
        "location": "location",
        "casetaskevent": "caseTaskEvent",
        "serviceitem": "item",
        "approvalstatus": "approvalStatus",
        "department": "department",
        "class": "class",
        "billingclass": "billingClass",
        "timetype": "timeType",
        "nextapprover": "nextApprover",
        "timeofftype": "timeOffType"
    },
    "dependencies": {
        "payrollitem": {
            "name": "Payroll Items",
            "model": "PayrollItem",
            "path": "/src/PayrollItems/Data/criteria.json"
        },
        "serviceitem": {
            "name": "Service Items",
            "model": "ServiceItem",
            "path": "/src/ServiceItems/Data/criteria.json"
        }
    }
}


    // "payrollitem": {
    //     "label": "Payroll Item",
    //     "content_type": "record",
    //     "references": "PayrollItem",
    //     "referenceField": "title",
    //     "filterid": "employee",
    //     "relationship": "employees"
    // },
