<?xml version="1.0" encoding="UTF-8"?>
<!--
 * This file is part of FacturaScripts
 * Copyright (C) 2017-2026 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 Francesc Pineda Segarra  <francesc.pineda.segarra@gmail.com>
 * @author Carlos García Gómez      <carlos@facturascripts.com>
-->
<view>
    <columns>
        <group name="data" numcolumns="12">
            <column name="id" display="none" order="100">
                <widget type="text" fieldname="idestado" readonly="dinamic"/>
            </column>
            <column name="name" order="110">
                <widget type="text" fieldname="nombre" maxlength="30" required="true"/>
            </column>
            <column name="doc-type" order="120">
                <widget type="select" fieldname="tipodoc" required="true" 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="update-stock" order="130">
                <widget type="select" fieldname="actualizastock" translate="true" required="true">
                    <values title="book">-2</values>
                    <values title="subtract">-1</values>
                    <values title="do-nothing">0</values>
                    <values title="add">1</values>
                    <values title="foresee">2</values>
                </widget>
            </column>
            <column name="generate-doc-type" order="140">
                <widget type="select" fieldname="generadoc" 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>
        </group>
        <group name="config" valign="bottom" numcolumns="12">
            <column name="color" numcolumns="3" titleurl="https://getbootstrap.com/docs/4.6/utilities/colors/#background-color" order="100">
                <widget type="select" fieldname="color" translate="true">
                    <values title="color-primary">primary</values>
                    <values title="color-secondary">secondary</values>
                    <values title="color-success">success</values>
                    <values title="color-danger">danger</values>
                    <values title="color-warning">warning</values>
                    <values title="color-info">info</values>
                    <values title="color-dark">dark</values>
                </widget>
            </column>
            <column name="icon" titleurl="https://fontawesome.com/search?ic=free-collection" numcolumns="3" order="110">
                <widget type="text" fieldname="icon" icon="fa-solid fa-icons" maxlength="50"/>
            </column>
            <column name="active" order="120">
                <widget type="checkbox" fieldname="activo"/>
            </column>
            <column name="editable" order="130">
                <widget type="checkbox" fieldname="editable"/>
            </column>
            <column name="locked" display="none" order="140">
                <widget type="checkbox" fieldname="bloquear"/>
            </column>
            <column name="default" order="150">
                <widget type="checkbox" fieldname="predeterminado"/>
            </column>
        </group>
    </columns>
</view>
