<?xml version="1.0" encoding="UTF-8"?>
<!--
 * This file is part of FacturaScripts
 * Copyright (C) 2018-2026 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>
 * @collaborator Jerónimo Pedro Sánchez Manzano <socger@gmail.com>
-->
<view>
    <columns>
        <column name="id" display="none" order="100">
            <widget type="text" fieldname="idsubcuenta" onclick="EditSubcuenta"/>
        </column>
        <column name="fiscal-exercise" order="110">
            <widget type="select" fieldname="codejercicio">
                <values source="ejercicios" fieldcode="codejercicio" fieldtitle="nombre"/>
            </widget>
        </column>
        <column name="code" order="120">
            <widget type="text" fieldname="codsubcuenta"/>
        </column>
        <column name="description" order="130">
            <widget type="textarea" fieldname="descripcion"/>
        </column>
        <column name="account" display="none" order="140">
            <widget type="autocomplete" fieldname="idcuenta">
                <values source="cuentas" fieldcode="idcuenta" fieldtitle="codcuenta"/>
            </widget>
        </column>
        <column name="special-account" order="150">
            <widget type="select" fieldname="codcuentaesp" onclick="EditCuentaEspecial">
                <values source="cuentasesp" fieldcode="codcuentaesp" fieldtitle="descripcion"/>
            </widget>
        </column>
        <column name="debit" display="right" order="160">
            <widget type="money" fieldname="debe"/>
        </column>
        <column name="credit" display="right" order="170">
            <widget type="money" fieldname="haber"/>
        </column>
        <column name="balance" display="right" order="180">
            <widget type="money" fieldname="saldo"/>
        </column>
    </columns>
    <rows>
        <row type="status">
            <option color="danger" fieldname="saldo" title="negative-balance">lt:0</option>
            <option color="success" fieldname="saldo" title="positive-balance">gt:0</option>
        </row>
    </rows>
</view>
