<?xml version="1.0" encoding="UTF-8"?>
<!--
 * This file is part of FacturaScripts
 * Copyright (C) 2017-2022 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>
 * @author Jose Antonio Cuello Principal <yopli2000@gmail.com>
-->
<view>
    <columns>
        <column name="idaccounting" display="none" order="100">
            <widget type="text" fieldname="idasiento" onclick="EditAsiento"/>
        </column>
        <column name="fiscal-exercise" display="none" order="100">
            <widget type="text" fieldname="codejercicio"/>
        </column>
        <column name="idline" display="none" order="100">
            <widget type="text" fieldname="idpartida"/>
        </column>
        <column name="idsubaccount" display="none" order="100">
            <widget type="text" fieldname="idcontrapartida"/>
        </column>
        <column name="special-account" display="none" order="100">
            <widget type="text" fieldname="codcuentaesp"/>
        </column>
        <column name="taxes" display="none" order="100">
            <widget type="text" fieldname="codimpuesto"/>
        </column>
        <column name="serie" order="105">
            <widget type="text" fieldname="codserie"/>
        </column>
        <column name="invoice" order="110">
            <widget type="text" fieldname="factura"/>
        </column>
        <column name="accounting-entry" order="120">
            <widget type="autocomplete" fieldname="idasiento" onclick="EditAsiento">
                <values source="asientos" fieldcode="idasiento" fieldtitle="numero"/>
            </widget>
        </column>
        <column name="document" display="none" order="130">
            <widget type="text" fieldname="documento"/>
        </column>
        <column name="date" display="center" order="140">
            <widget type="date" fieldname="fecha"/>
        </column>
        <column name="subaccount" display="none" order="150">
            <widget type="text" fieldname="codcontrapartida"/>
        </column>
        <column name="fiscal-number" display="none" order="160">
            <widget type="text" fieldname="cifnif"/>
        </column>
        <column name="accounting-concept" order="170">
            <widget type="text" fieldname="concepto"/>
        </column>
        <column name="tax-base" display="right" order="200">
            <widget type="money" fieldname="baseimponible">
                <option color="danger">lt:0</option>
            </widget>
        </column>
        <column name="pct-vat" display="right" order="210">
            <widget type="number" decimal="2" fieldname="iva"/>
        </column>
        <column name="vat" display="right" order="220">
            <widget type="money" fieldname="cuotaiva">
                <option color="danger">lt:0</option>
            </widget>
        </column>
        <column name="surcharge" display="right" order="230">
            <widget type="number" decimal="2" fieldname="recargo"/>
        </column>
        <column name="surcharge" display="right" order="240">
            <widget type="money" fieldname="cuotarecargo">
                <option color="danger">lt:0</option>
            </widget>
        </column>
    </columns>
    <rows>
        <row type="status">
            <option color="danger" fieldname="iva">null:</option>
            <option color="secondary" fieldname="iva">0</option>
        </row>
    </rows>
</view>
