<?xml version="1.0" encoding="UTF-8"?>
<!--
 * This file is part of FacturaScripts
 * Copyright (C) 2020-2021 Carlos García Gómez <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 Jose Antonio Cuello  <jcuello@artextrading.com>
-->
<view>
    <columns>
        <group name="basic" numcolumns="12">
            <column name="code" display="none" order="100">
                <widget type="text" fieldname="id"/>
            </column>
            <column name="name" order="110">
                <widget type="text" fieldname="name" required="true"/>
            </column>
            <column name="company" titleurl="ListEmpresa" order="120">
                <widget type="select" fieldname="idcompany" onclick="EditEmpresa">
                    <values source="empresas" fieldcode="idempresa" fieldtitle="nombrecorto"/>
                </widget>
            </column>
            <column name="channel" display="none" order="130">
                <widget type="number" fieldname="channel" decimal="0"/>
            </column>
            <column name="grouping-type" order="140">
                <widget type="select" fieldname="groupingtype" translate="true" required="true">
                    <values title="do-not-group">N</values>
                    <values title="report-grouping-account">C</values>
                    <values title="group-by-subaccount">S</values>
                </widget>
            </column>
        </group>
        <group name="filters" numcolumns="12">
            <column name="from-date" order="100">
                <widget type="date" fieldname="startdate" required="true"/>
            </column>
            <column name="until-date" order="110">
                <widget type="date" fieldname="enddate" required="true"/>
            </column>
            <column name="from-subaccount" order="120">
                <widget type="autocomplete" fieldname="startcodsubaccount" strict="false">
                    <values source="subcuentas" fieldcode="codsubcuenta" fieldtitle="descripcion"/>
                </widget>
            </column>
            <column name="until-subaccount" order="130">
                <widget type="autocomplete" fieldname="endcodsubaccount" strict="false">
                    <values source="subcuentas" fieldcode="codsubcuenta" fieldtitle="descripcion"/>
                </widget>
            </column>
            <column name="from-accounting-entry" order="140">
                <widget type="number" fieldname="startentry" decimal="0"/>
            </column>
            <column name="until-accounting-entry" order="150">
                <widget type="number" fieldname="endentry" decimal="0"/>
            </column>
        </group>
    </columns>
</view>