<?xml version="1.0" encoding="UTF-8"?>
<!--
 * This file is part of FacturaScripts
 * Copyright (C) 2017-2023 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 Carlos García Gómez      <carlos@facturascripts.com>
 * @author Francesc Pineda Segarra  <francesc.pineda@x-netdigital.com>
-->
<view>
    <columns>
        <group name="data" numcolumns="12">
            <column name="product" display="none" order="100">
                <widget type="text" fieldname="idproducto" required="true"/>
            </column>
            <column name="reference" numcolumns="2" order="110">
                <widget type="text" fieldname="referencia" maxlength="30" icon="fa-solid fa-hashtag"/>
            </column>
            <column name="attribute-value-1" titleurl="ListAtributo" numcolumns="2" order="120">
                <widget type="select" fieldname="idatributovalor1"/>
            </column>
            <column name="attribute-value-2" titleurl="ListAtributo" numcolumns="2" order="130">
                <widget type="select" fieldname="idatributovalor2"/>
            </column>
            <column name="attribute-value-3" titleurl="ListAtributo" numcolumns="2" order="140">
                <widget type="select" fieldname="idatributovalor3"/>
            </column>
            <column name="attribute-value-4" titleurl="ListAtributo" numcolumns="2" order="150">
                <widget type="select" fieldname="idatributovalor4"/>
            </column>
            <column name="barcode" numcolumns="2" order="160">
                <widget type="text" fieldname="codbarras" maxlength="20" icon="fa-solid fa-barcode"/>
            </column>
            <column name="cost-price" display="right" numcolumns="2" order="170">
                <widget type="money" decimal="2" fieldname="coste" class="calc-cost"/>
            </column>
            <column name="margin" display="right" numcolumns="2" order="180">
                <widget type="percentage" fieldname="margen" class="calc-margin" min="0"/>
            </column>
            <column name="price" display="right" numcolumns="2" order="190">
                <widget type="money" decimal="2" fieldname="precio" class="calc-price"/>
            </column>
            <column name="stock" display="right" numcolumns="2" order="200">
                <widget type="number" fieldname="stockfis" readonly="true"/>
            </column>
        </group>
    </columns>
</view>