<?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 Carlos García Gómez          <carlos@facturascripts.com>
 * @author Fco. Antonio Moreno Pérez    <famphuelva@gmail.com>
 * @author Artex Trading sa             <jcuello@artextrading.com>
-->
<view>
    <columns>
        <group name="data" title="general-data" numcolumns="6" icon="fa-solid fa-info">
            <column name="id" display="none" order="100">
                <widget type="number" fieldname="idasiento" />
            </column>
            <column name="exercise" numcolumns="4" order="110">
                <widget type="select" fieldname="codejercicio" onclick="EditEjercicio" readonly="dinamic">
                    <values source="ejercicios" fieldcode="codejercicio" fieldtitle="nombre" />
                </widget>
            </column>
            <column name="date" numcolumns="4" order="120">
                <widget type="date" fieldname="fecha" required="true" />
            </column>
            <column name="number" numcolumns="4" order="130">
                <widget type="number" fieldname="numero" decimal="0" step="1" readonly="true" />
            </column>
        </group>
        <group name="advanced" title="advanced" numcolumns="6" icon="fa-solid fa-chart-line">
            <column name="journal" numcolumns="5" order="210">
                <widget type="select" fieldname="iddiario" onclick="EditDiario">
                    <values source="diarios" fieldcode="iddiario" fieldtitle="descripcion" />
                </widget>
            </column>
            <column name="channel" numcolumns="3" order="220">
                <widget type="number" decimal="0" step="1" fieldname="canal" />
            </column>
            <column name="amount" numcolumns="4" display="right" order="230">
                <widget type="money" fieldname="importe" readonly="true" />
            </column>
        </group>
        <group name="other" numcolumns="12">
            <column name="concept" order="310">
                <widget type="text" fieldname="concepto" maxlength="255" required="true" />
            </column>
            <column name="document" numcolumns="4" order="320">
                <widget type="text" fieldname="documento" maxlength="50" />
            </column>
        </group>
    </columns>
</view>
