<?xml version="1.0" encoding="UTF-8"?>
<!--
 * This file is part of Servicios plugin for FacturaScripts
 * Copyright (C) 2020-2023 Carlos Garcia Gomez <carlos@facturascripts.com>
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 *
 * @author Carlos García Gómez <carlos@facturascripts.com>
-->
<view>
    <columns>
        <column name="id" display="none" order="0">
            <widget type="text" fieldname="idservicio"/>
        </column>
        <column name="code" order="100">
            <widget type="text" fieldname="codigo"/>
        </column>
        <column name="company" display="none" order="105">
            <widget type="select" fieldname="idempresa">
                <values source="empresas" fieldcode="idempresa" fieldtitle="nombrecorto"/>
            </widget>
        </column>
        <column name="warehouse" display="none" order="110">
            <widget type="select" fieldname="codalmacen">
                <values source="almacenes" fieldcode="codalmacen" fieldtitle="nombre"/>
            </widget>
        </column>
        <column name="type" display="right" order="112">
            <widget type="select" fieldname="idtipo">
                <values source="serviciosat_tipos" fieldcode="id" fieldtitle="name"/>
            </widget>
        </column>
        <column name="customer" order="115">
            <widget type="autocomplete" fieldname="codcliente">
                <values source="clientes" fieldcode="codcliente" fieldtitle="nombre"/>
            </widget>
        </column>
        <column name="phone" display="none" order="120">
            <widget type="text" fieldname="telefono1"/>
        </column>
        <column name="phone2" display="none" order="125">
            <widget type="text" fieldname="telefono2"/>
        </column>
        <column name="machine" order="130">
            <widget type="autocomplete" fieldname="idmaquina">
                <values source="serviciosat_maquinas" fieldcode="idmaquina" fieldtitle="nombre"/>
            </widget>
        </column>
        <column name="machine2" title="machine" display="none" order="135">
            <widget type="autocomplete" fieldname="idmaquina2">
                <values source="serviciosat_maquinas" fieldcode="idmaquina" fieldtitle="nombre"/>
            </widget>
        </column>
        <column name="machine3" title="machine" display="none" order="140">
            <widget type="autocomplete" fieldname="idmaquina2">
                <values source="serviciosat_maquinas" fieldcode="idmaquina" fieldtitle="nombre"/>
            </widget>
        </column>
        <column name="machine4" title="machine" display="none" order="145">
            <widget type="autocomplete" fieldname="idmaquina2">
                <values source="serviciosat_maquinas" fieldcode="idmaquina" fieldtitle="nombre"/>
            </widget>
        </column>
        <column name="description" order="150">
            <widget type="textarea" fieldname="descripcion"/>
        </column>
        <column name="material" display="none" order="155">
            <widget type="textarea" fieldname="material" rows="6"/>
        </column>
        <column name="solution" display="none" order="160">
            <widget type="textarea" fieldname="solucion" rows="6"/>
        </column>
        <column name="observations" display="none" order="165">
            <widget type="textarea" fieldname="observaciones"/>
        </column>
        <column name="user" display="none" order="170">
            <widget type="select" fieldname="codagente">
                <values source="users" fieldcode="nick" fieldtitle="nick"/>
            </widget>
        </column>
        <column name="assigned" display="none" order="175">
            <widget type="select" fieldname="asignado">
                <values source="users" fieldcode="nick" fieldtitle="nick"/>
            </widget>
        </column>
        <column name="agent" display="none" order="180">
            <widget type="select" fieldname="codagente">
                <values source="agentes" fieldcode="codagente" fieldtitle="nombre"/>
            </widget>
        </column>
        <column name="status" order="185">
            <widget type="select" fieldname="idestado">
                <values source="serviciosat_estados" fieldcode="id" fieldtitle="nombre"/>
            </widget>
        </column>
        <column name="priority" display="none" order="190">
            <widget type="select" fieldname="idprioridad">
                <values source="serviciosat_prioridades" fieldcode="id" fieldtitle="nombre"/>
            </widget>
        </column>
        <column name="net" display="right" order="195">
            <widget type="money" fieldname="neto"/>
        </column>
        <column name="date" display="right" order="200">
            <widget type="date" fieldname="fecha"/>
        </column>
        <column name="hour" display="none" order="205">
            <widget type="time" fieldname="hora"/>
        </column>
    </columns>
    <rows>
        <row type="status">
        </row>
    </rows>
</view>