<?xml version="1.0" encoding="UTF-8"?>
<!--
 * This file is part of FacturaScripts
 * Copyright (C) 2017-2022 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 PC REDNET S.L.       <luismi@pcrednet.com>
 * @author Rafael San José      <info@rsanjoseo.com>
 * @author Carlos García Gómez  <carlos@facturascripts.com>
-->
<view>
    <columns>
        <column name="id" display="none" order="90">
            <widget type="text" fieldname="idstock"/>
        </column>
        <column name="product" display="none" order="100">
            <widget type="text" fieldname="idproducto"/>
        </column>
        <column name="reference" title="variant" order="110">
            <widget type="select" fieldname="referencia" readonly="dinamic" required="true"/>
        </column>
        <column name="warehouse" titleurl="ListAlmacen" order="120">
            <widget type="select" fieldname="codalmacen" onclick="EditAlmacen" required="true">
                <values source="almacenes" fieldcode="codalmacen" fieldtitle="nombre"/>
            </widget>
        </column>
        <column name="quantity" numcolumns="1" order="130">
            <widget type="number" fieldname="cantidad"/>
        </column>
        <column name="location" order="140">
            <widget type="text" fieldname="ubicacion" maxlength="100"/>
        </column>
        <column name="stockmin" numcolumns="1" order="150">
            <widget type="number" fieldname="stockmin" min="0"/>
        </column>
        <column name="stockmax" numcolumns="1" order="160">
            <widget type="number" fieldname="stockmax" min="0"/>
        </column>
        <column name="reserved" order="170">
            <widget type="number" fieldname="reservada" readonly="true"/>
        </column>
        <column name="pending-reception" order="180">
            <widget type="number" fieldname="pterecibir" readonly="true"/>
        </column>
        <column name="available" order="190">
            <widget type="number" fieldname="disponible" readonly="true"/>
        </column>
    </columns>
</view>
