<?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 Carlos García Gómez          <carlos@facturascripts.com>
 * @author Cristo M. Estévez Hernández  <cristom.estevez@gmail.com>
-->
<view>
    <columns>
        <group name="data" numcolumns="12">
            <column name="description" 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="codretencion" icon="fa-solid fa-hashtag" maxlength="10"/>
            </column>
            <column name="percentage" numcolumns="2" order="120">
                <widget type="percentage" decimal="2" fieldname="porcentaje" required="true"/>
            </column>
            <column name="subaccount-irpf" description="optional" numcolumns="3" order="130">
                <widget type="subcuenta" fieldname="codsubcuentaret"/>
            </column>
            <column name="subaccount-irpf-creditor" description="optional" numcolumns="3" order="140">
                <widget type="subcuenta" fieldname="codsubcuentaacr"/>
            </column>
        </group>
        <group name="extra" numcolumns="12">
            <column name="active" order="200">
                <widget type="checkbox" fieldname="activa"/>
            </column>
        </group>
    </columns>
</view>