<?xml version="1.0" encoding="UTF-8"?>
<!--
 * This file is part of FacturaScripts
 * Copyright (C) 2017-2024 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 Jose Antonio Cuello Principal <yopli2000@gmail.com>
 * @author Carlos García Gómez  <carlos@facturascripts.com>
-->
<view>
    <columns>
        <column name="id" display="none" order="100">
            <widget type="text" fieldname="idregiva" />
        </column>
        <column name="company" display="none" order="100">
            <widget type="select" fieldname="idempresa">
                <values source="empresas" fieldcode="idempresa" fieldtitle="nombrecorto" />
            </widget>
        </column>
        <column name="fiscal-exercise" order="100">
            <widget type="text" fieldname="codejercicio" />
        </column>
        <column name="period" order="110">
            <widget type="select" fieldname="periodo" translate="true">
                <values title="first-trimester">T1</values>
                <values title="second-trimester">T2</values>
                <values title="third-trimester">T3</values>
                <values title="fourth-trimester">T4</values>
                <values title="year-model-390">Y</values>
                <values title="january">01</values>
                <values title="february">02</values>
                <values title="march">03</values>
                <values title="april">04</values>
                <values title="may">05</values>
                <values title="june">06</values>
                <values title="july">07</values>
                <values title="august">08</values>
                <values title="september">09</values>
                <values title="october">10</values>
                <values title="november">11</values>
                <values title="december">12</values>
            </widget>
        </column>
        <column name="start-date" display="right" order="120">
            <widget type="date" fieldname="fechainicio" />
        </column>
        <column name="end-date" order="130">
            <widget type="date" fieldname="fechafin" />
        </column>
        <column name="accounting-entry" display="right" order="140">
            <widget type="autocomplete" fieldname="idasiento" onclick="EditAsiento">
                <values source="asientos" fieldcode="idasiento" fieldtitle="numero" />
            </widget>
        </column>
        <column name="accounting-date" display="right" order="150">
            <widget type="text" fieldname="fechaasiento" />
        </column>
    </columns>
    <rows>
        <row type="status">
            <option color="warning" fieldname="bloquear">1</option>
        </row>
    </rows>
</view>