<?xml version="1.0" encoding="UTF-8"?>
<!--
 * This file is part of Servicios plugin FacturaScripts
 * Copyright (C) 2020-2021 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>
        <group name="data" numcolumns="12">
            <column name="code" display="none" order="100">
                <widget type="text" fieldname="idmaquina" />
            </column>
            <column name="name" order="110">
                <widget type="text" fieldname="nombre" />
            </column>
            <column name="serial-number" order="120">
                <widget type="text" fieldname="numserie" />
            </column>
            <column name="reference" order="130">
                <widget type="text" fieldname="referencia" maxlength="30" icon="fa-solid fa-hashtag" />
            </column>
            <column name="manufacturer" titleurl="ListFabricante" order="140">
                <widget type="select" fieldname="codfabricante" onclick="EditFabricante">
                    <values source="fabricantes" fieldcode="codfabricante" fieldtitle="nombre" />
                </widget>
            </column>
            <column name="description" numcolumns="12" order="150">
                <widget type="textarea" fieldname="descripcion" />
            </column>
            <column name="date" display="right" order="160">
                <widget type="date" fieldname="fecha" />
            </column>
            <column name="customer" titleurl="ListCliente" order="170">
                <widget type="autocomplete" fieldname="codcliente" onclick="EditCliente">
                    <values source="clientes" fieldcode="codcliente" fieldtitle="nombre" />
                </widget>
            </column>
            <column name="agent" titleurl="ListAgente" order="180">
                <widget type="select" fieldname="codagente" onclick="EditAgente">
                    <values source="agentes" fieldcode="codagente" fieldtitle="nombre" />
                </widget>
            </column>
        </group>
    </columns>
</view>