<?xml version="1.0" encoding="UTF-8"?>
<!--
 * This file is part of FacturaScripts
 * Copyright (C) 2017-2025 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 Artex Trading sa     <jcuello@artextrading.com>
 * @author Frank Aguirre        <faguirre@soenac.com>
-->
<view>
    <columns>
        <column name="code" order="100">
            <widget type="text" fieldname="codimpuesto"/>
        </column>
        <column name="description" order="110">
            <widget type="textarea" fieldname="descripcion"/>
        </column>
        <column name="type" order="120">
            <widget type="select" fieldname="tipo" translate="true">
                <values title="percentage">1</values>
                <values title="fixed-value">2</values>
            </widget>
        </column>
        <column name="operation" display="none" order="130">
            <widget type="select" fieldname="operacion" translate="true" >
                <values/>
            </widget>
        </column>
        <column name="vat" display="right" order="140">
            <widget type="number" decimal="2" fieldname="iva"/>
        </column>
        <column name="surcharge" display="right" order="150">
            <widget type="number" decimal="2" fieldname="recargo"/>
        </column>
        <column name="impacted-tax-subaccount" order="160">
            <widget type="text" fieldname="codsubcuentarep"/>
        </column>
        <column name="impacted-tax-re-subaccount" display="none" order="170">
            <widget type="text" fieldname="codsubcuentarepre"/>
        </column>
        <column name="supported-tax-subaccount" order="180">
            <widget type="text" fieldname="codsubcuentasop"/>
        </column>
        <column name="supported-tax-re-subaccount" display="none" order="190">
            <widget type="text" fieldname="codsubcuentasopre"/>
        </column>
    </columns>
    <rows>
        <row type="status">
            <option color="danger" fieldname="activo" title="inactive">0</option>
            <option color="warning" fieldname="iva" title="empty">0</option>
            <option color="info" fieldname="tipo" title="fixed-value">2</option>
        </row>
    </rows>
</view>