<?xml version="1.0" encoding="UTF-8"?>
<!--
 * This file is part of FacturaScripts
 * Copyright (C) 2017-2025 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" valign="bottom">
            <column name="code" display="none" numcolumns="2" order="100">
                <widget type="text" fieldname="codalmacen" icon="fa-solid fa-hashtag" maxlength="4" readonly="dinamic"/>
            </column>
            <column name="name" numcolumns="4" order="110">
                <widget type="text" fieldname="nombre" maxlength="100" required="true"/>
            </column>
            <column name="address" numcolumns="6" order="120">
                <widget type="text" fieldname="direccion" maxlength="200" icon="fa-solid fa-map-marked"/>
            </column>
            <column name="phone" numcolumns="2" order="130">
                <widget type="text" fieldname="telefono" maxlength="30" icon="fa-solid fa-phone"/>
            </column>
            <column name="post-office-box" display="none" numcolumns="2" order="140">
                <widget type="text" fieldname="apartado" maxlength="10"/>
            </column>
            <column name="zip-code" numcolumns="2" order="150">
                <widget type="text" fieldname="codpostal" maxlength="10"/>
            </column>
            <column name="city" numcolumns="2" order="160">
                <widget type="datalist" fieldname="ciudad">
                    <values source="ciudades" fieldcode="idciudad" fieldtitle="ciudad"/>
                </widget>
            </column>
            <column name="province" numcolumns="2" order="170">
                <widget type="datalist" fieldname="provincia">
                    <values source="provincias" fieldcode="provincia" fieldtitle="provincia"/>
                </widget>
            </column>
            <column name="country" titleurl="ListPais" numcolumns="2" order="180">
                <widget type="select" fieldname="codpais" onclick="EditPais" required="true">
                    <values source="paises" fieldcode="codpais" fieldtitle="nombre"/>
                </widget>
            </column>
            <column name="company" numcolumns="2" order="190">
                <widget type="select" fieldname="idempresa" onclick="EditEmpresa" required="true" readonly="dinamic">
                    <values source="empresas" fieldcode="idempresa" fieldtitle="nombrecorto"/>
                </widget>
            </column>
            <column name="active" order="200">
                <widget type="checkbox" fieldname="activo"/>
            </column>
        </group>
    </columns>
</view>