<?xml version="1.0" encoding="UTF-8"?>
<!--
 * This file is part of FacturaScripts
 * Copyright (C) 2017-2020 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 Rafael San José Tovar    <rafael.sanjose@x-netdigital.com>
 * @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="id" icon="fa-solid fa-hashtag" required="true"/>
            </column>
            <column name="tax" order="110">
                <widget type="select" fieldname="codimpuesto" onclick="EditImpuesto" required="true">
                    <values source="impuestos" fieldcode="codimpuesto" fieldtitle="descripcion"/>
                </widget>
            </column>
            <column name="country" titleurl="ListPais" order="120">
                <widget type="select" fieldname="codpais" icon="fa-solid fa-globe-americas">
                    <values source="paises" fieldcode="codpais" fieldtitle="nombre"/>
                </widget>
            </column>
            <column name="province" titleurl="ListPais?activetab=ListProvincia" order="130">
                <widget type="autocomplete" fieldname="codisopro">
                    <values source="provincias" fieldcode="idprovincia" fieldtitle="provincia"/>
                </widget>
            </column>
            <column name="applied-tax" order="140">
                <widget type="select" fieldname="codimpuestosel">
                    <values source="impuestos" fieldcode="codimpuesto" fieldtitle="descripcion"/>
                </widget>
            </column>
            <column name="vat-exception" order="145">
                <widget type="select" fieldname="excepcioniva">
                    <values/>
                </widget>
            </column>
            <column name="priority" order="150">
                <widget type="number" fieldname="prioridad" icon="fa-solid fa-sort-numeric-down-alt" required="true"/>
            </column>
        </group>
    </columns>
</view>
