{
    "options": [
        {
            "fields": [
                {
                    "name": "begin",
                    "label": "Fecha de inicio real",
                    "type": "datetime",
                    "readonly": true
                },
                {
                    "name": "end",
                    "label": "Fecha de fin real",
                    "type": "datetime",
                    "readonly": true
                },
                {
                    "name": "code",
                    "label": "Código",
                    "type": "text",
                    "readonly": true
                },
                {
                    "name": "count",
                    "label": "Cantidad de O.T.s",
                    "type": "number",
                    "readonly": true
                },
                {
                    "name": "description",
                    "label": "Descripción",
                    "type": "textarea",
                    "placeholder": "Escriba una descripción",
                    "spaces": 2
                },
                {
                    "name": "providers",
                    "label": "Proveedores",
                    "type": "datatable",
                    "advanced": {
                        "allowRefresh": false,
                        "allowPaging": false,
                        "selection": "none"
                    },
                    "column": [
                        {
                            "name": "code",
                            "label": "Código",
                            "type": "text"
                        },
                        {
                            "name": "name",
                            "label": "Nombre",
                            "type": "text"
                        },
                        {
                            "name": "count",
                            "label": "Cantidad",
                            "type": "text"
                        },
                        {
                            "name": "fee",
                            "label": "Tarifa",
                            "type": "number"
                        },
                        {
                            "name": "totalCosts",
                            "label": "Costo total",
                            "type": "number"
                        }
                    ],
                    "summaries": [
                        {
                            "column": "totalCosts",
                            "format": "{0}",
                            "type": "sum"
                        }
                    ],
                    "spaces": 2
                },
                {
                    "name": "services",
                    "label": "Servicios",
                    "type": "datatable",
                    "advanced": {
                        "allowRefresh": false,
                        "allowPaging": false,
                        "selection": "none"
                    },
                    "column": [
                        {
                            "name": "code",
                            "label": "Código",
                            "type": "text"
                        },
                        {
                            "name": "name",
                            "label": "Nombre",
                            "type": "text"
                        },
                        {
                            "name": "count",
                            "label": "Cantidad",
                            "type": "text"
                        },
                        {
                            "name": "fee",
                            "label": "Tarifa",
                            "type": "number"
                        },
                        {
                            "name": "totalCosts",
                            "label": "Costo total",
                            "type": "number"
                        }
                    ],
                    "summaries": [
                        {
                            "column": "totalCosts",
                            "format": "{0}",
                            "type": "sum"
                        }
                    ],
                    "spaces": 2
                }
            ]
        }
    ]
}
