<?xml version="1.0" encoding="UTF-8"?>
<!--
 * This file is part of Informes plugin for FacturaScripts
 * Copyright (C) 2020-2022 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 Jose Antonio Cuello <jcuello@artextrading.com>
 * @author Carlos García Gómez <carlos@facturascripts.com>
-->
<view>
    <columns>
        <column name="code" display="none" order="100">
            <widget type="text" fieldname="id"/>
        </column>
        <column name="name" order="110">
            <widget type="text" fieldname="name"/>
        </column>
        <column name="type" order="120">
            <widget type="select" fieldname="type" translate="true">
                <values title="balance-sheet">balance-sheet</values>
                <values title="profit-and-loss">profit-and-loss</values>
                <values title="income-and-expenses">income-and-expenses</values>
            </widget>
        </column>
        <column name="sub-type" display="none" order="130">
            <widget type="select" fieldname="subtype" translate="true">
                <values title="abbreviated">abbreviated</values>
                <values title="normal">normal</values>
                <values title="pymes">pymes</values>
            </widget>
        </column>
        <column name="company" display="none" order="140">
            <widget type="select" fieldname="idcompany">
                <values source="empresas" fieldcode="idempresa" fieldtitle="nombrecorto"/>
            </widget>
        </column>
        <column name="channel" display="none" order="150">
            <widget type="text" fieldname="channel"/>
        </column>
        <column name="start-date" display="right" order="160">
            <widget type="date" fieldname="startdate"/>
        </column>
        <column name="end-date" display="right" order="170">
            <widget type="date" fieldname="enddate"/>
        </column>
        <column name="comparative" display="center" order="180">
            <widget type="checkbox" fieldname="comparative"/>
        </column>
    </columns>
    <rows>
        <row type="status">
            <option color="info" fieldname="type" title="balance-sheet">balance-sheet</option>
            <option color="warning" fieldname="type" title="profit-and-loss">profit-and-loss</option>
        </row>
    </rows>
</view>