<?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 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="description" order="100">
                <widget type="text" fieldname="descripcion" maxlength="100" required="true"/>
            </column>
            <column name="code" description="optional" numcolumns="2" order="110">
                <widget type="text" fieldname="codserie" icon="fa-solid fa-hashtag" maxlength="4" readonly="dinamic"/>
            </column>
            <column name="type" numcolumns="2" order="120">
                <widget type="select" fieldname="tipo" translate="true">
                    <values title="simplified">S</values>
                    <values title="rectifying">R</values>
                </widget>
            </column>
            <column name="journal" titleurl="ListAsiento?activetab=ListDiario" display="none" order="130">
                <widget type="select" fieldname="iddiario" onclick="EditDiario">
                    <values source="diarios" fieldcode="iddiario" fieldtitle="descripcion"/>
                </widget>
            </column>
            <column name="channel" display="none" order="140">
                <widget type="number" fieldname="canal" min="0"/>
            </column>
        </group>
        <group name="advanced" numcolumns="12">
            <column name="without-taxation" numcolumns="2" order="140">
                <widget type="checkbox" fieldname="siniva"/>
            </column>
        </group>
    </columns>
</view>