<?xml version="1.0" encoding="UTF-8"?>
<!--
 * This file is part of FacturaScripts
 * Copyright (C) 2019-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 Cristo M. Estévez Hernández  <cristom.estevez@gmail.com>
 * @author Carlos García Gómez          <carlos@facturascripts.com>
-->
<view>
    <columns>
        <column name="id" display="none" order="100">
            <widget type="text" fieldname="id" onclick="EditFormatoDocumento"/>
        </column>
        <column name="name" order="110">
            <widget type="text" fieldname="nombre"/>
        </column>
        <column name="doc-type" order="120">
            <widget type="select" fieldname="tipodoc" translate="true">
                <values title="customer-estimation">PresupuestoCliente</values>
                <values title="customer-order">PedidoCliente</values>
                <values title="customer-delivery-note">AlbaranCliente</values>
                <values title="customer-invoice">FacturaCliente</values>
                <values title="supplier-estimation">PresupuestoProveedor</values>
                <values title="supplier-order">PedidoProveedor</values>
                <values title="supplier-delivery-note">AlbaranProveedor</values>
                <values title="supplier-invoice">FacturaProveedor</values>
            </widget>
        </column>
        <column name="company" display="none" order="130">
            <widget type="select" fieldname="idempresa">
                <values source="empresas" fieldcode="idempresa" fieldtitle="nombrecorto"/>
            </widget>
        </column>
        <column name="serie" order="140">
            <widget type="text" fieldname="codserie"/>
        </column>
        <column name="title" order="150">
            <widget type="text" fieldname="titulo"/>
        </column>
        <column name="additional-text" order="160">
            <widget type="textarea" fieldname="texto"/>
        </column>
    </columns>
    <rows>
        <row type="status">
            <option color="info" fieldname="autoaplicar" title="optional">0</option>
        </row>
    </rows>
</view>
