<?xml version="1.0" encoding="UTF-8"?>
<!--
 * This file is part of FacturaScripts
 * Copyright (C) 2019 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>
-->
<view>
    <columns>
        <column name="id" display="none" order="100">
            <widget type="text" fieldname="idpago" />
        </column>
        <column name="receipt" display="none" order="110">
            <widget type="text" fieldname="idrecibo" />
        </column>
        <column name="date" order="120">
            <widget type="date" fieldname="fecha" />
        </column>
        <column name="hour" order="130">
            <widget type="text" fieldname="hora" />
        </column>
        <column name="accounting-entry" order="140">
            <widget type="autocomplete" fieldname="idasiento" onclick="EditAsiento">
                <values source="asientos" fieldcode="idasiento" fieldtitle="numero" />
            </widget>
        </column>
        <column name="amount" display="right" order="150">
            <widget type="money" fieldname="importe" />
        </column>
        <column name="payment" title="method-payment" order="160">
            <widget type="select" fieldname="codpago" onclick="EditFormaPago">
                <values source="formaspago" fieldcode="codpago" fieldtitle="descripcion" />
            </widget>
        </column>
        <column name="user" display="right" order="170">
            <widget type="select" fieldname="nick">
                <values source="users" fieldcode="nick" fieldtitle="nick" />
            </widget>
        </column>
    </columns>
    <rows>
        <row type="status">
            <option color="success" fieldname="importe">gt:0</option>
            <option color="warning" fieldname="importe">lt:0</option>
        </row>
    </rows>
</view>
