<?xml version="1.0" encoding="UTF-8"?>
<!--
 * This file is part of FacturaScripts
 * Copyright (C) 2017-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 Artex Trading sa     <jcuello@artextrading.com>
 * @author Carlos García Gómez  <carlos@facturascripts.com>
-->
<view>
    <columns>
        <column name="code" order="100">
            <widget type="text" fieldname="codagente" onclick="EditAgente" />
        </column>
        <column name="name" order="110">
            <widget type="text" fieldname="nombre" />
        </column>
        <column name="position" display="none" order="120">
            <widget type="text" fieldname="cargo" />
        </column>
        <column name="fiscal-id" display="none" order="130">
            <widget type="text" fieldname="tipoidfiscal" />
        </column>
        <column name="fiscal-number" order="140">
            <widget type="text" fieldname="cifnif" />
        </column>
        <column name="phone" order="150">
            <widget type="text" fieldname="telefono1" />
        </column>
        <column name="phone2" order="160">
            <widget type="text" fieldname="telefono2" />
        </column>
        <column name="email" order="170">
            <widget type="text" fieldname="email" />
        </column>
        <column name="blocked" display="none" order="180">
            <widget type="checkbox" fieldname="debaja" />
        </column>
        <column name="settlement-product" display="none" order="190">
            <widget type="variante" fieldname="idproducto" match="idproducto"/>
        </column>
        <column name="creation-date" display="none" order="200">
            <widget type="date" fieldname="fechaalta"/>
        </column>
        <column name="date-of-suspension" display="none" order="210">
            <widget type="date" fieldname="fechabaja"/>
        </column>
        <column name="observations" display="none" order="220">
            <widget type="textarea" fieldname="observaciones"/>
        </column>
    </columns>
    <rows>
        <row type="status">
            <option fieldname="debaja" title="suspended" color="danger">1</option>
        </row>
    </rows>
</view>