<?xml version="1.0" encoding="UTF-8"?>
<!--
 * This file is part of FacturaScripts
 * Copyright (C) 2017-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 Artex Trading sa             <jcuello@artextrading.com>
 * @author Fco. Antonio Moreno Pérez    <famphuelva@gmail.com>
 * @author Carlos García Gómez          <carlos@facturascripts.com>
 * @author Frank Aguirre                <faguirre@soenac.com>
-->
<view>
    <columns>
        <group name="data" numcolumns="12">
            <column name="description" numcolumns="2" order="100">
                <widget type="text" fieldname="descripcion" maxlength="50" required="true"/>
            </column>
            <column name="code" description="optional" numcolumns="2" order="110">
                <widget type="text" fieldname="codimpuesto" icon="fa-solid fa-hashtag" maxlength="10"
                        readonly="dinamic"/>
            </column>
            <column name="type" numcolumns="2" order="120">
                <widget type="select" fieldname="tipo" translate="true" required="true">
                    <values title="percentage">1</values>
                    <values title="fixed-value">2</values>
                </widget>
            </column>
            <column name="operation" numcolumns="2" order="130">
                <widget type="select" fieldname="operacion" translate="true">
                    <values/>
                </widget>
            </column>
            <column name="vat" numcolumns="2" order="140">
                <widget type="number" decimal="2" fieldname="iva" required="true"/>
            </column>
            <column name="surcharge" numcolumns="2" order="150">
                <widget type="number" decimal="2" fieldname="recargo" required="true"/>
            </column>
        </group>
        <group name="accounting" numcolumns="12">
            <column name="impacted-tax-subaccount" description="optional" order="160">
                <widget type="subcuenta" fieldname="codsubcuentarep"/>
            </column>
            <column name="impacted-tax-re-subaccount" description="optional" order="170">
                <widget type="subcuenta" fieldname="codsubcuentarepre"/>
            </column>
            <column name="impacted-tax-intra-subaccount" description="optional" order="175">
                <widget type="subcuenta" fieldname="codsubcuentarepintra"/>
            </column>
            <column name="supported-tax-subaccount" description="optional" order="180">
                <widget type="subcuenta" fieldname="codsubcuentasop"/>
            </column>
            <column name="supported-tax-re-subaccount" description="optional" order="190">
                <widget type="subcuenta" fieldname="codsubcuentasopre"/>
            </column>
            <column name="supported-tax-intra-subaccount" description="optional" order="195">
                <widget type="subcuenta" fieldname="codsubcuentasopintra"/>
            </column>
        </group>
        <group name="extra" numcolumns="12">
            <column name="active" order="100">
                <widget type="checkbox" fieldname="activo"/>
            </column>
        </group>
    </columns>
</view>