<?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 Artex Trading sa     <jcuello@artextrading.com>
 * @author Javier García Iceta  <javigarciaiceta@gmail.com>
 * @author Carlos García Gómez  <carlos@facturascripts.com>
-->
<view>
    <columns>
        <group name="data" numcolumns="12">
            <column name="code" description="optional" display="none" order="100">
                <widget type="text" fieldname="codpago" icon="fa-solid fa-hashtag" maxlength="10" readonly="dinamic" required="true"/>
            </column>
            <column name="description" order="110">
                <widget type="text" fieldname="descripcion" required="true" maxlength="100"/>
            </column>
            <column name="expiration" numcolumns="2" order="120">
                <widget type="number" fieldname="plazovencimiento" decimal="0" min="0"/>
            </column>
            <column name="expiration-type" numcolumns="2" order="130">
                <widget type="select" fieldname="tipovencimiento" translate="true" required="true">
                    <values title="days">days</values>
                    <values title="weeks">weeks</values>
                    <values title="months">months</values>
                    <values title="years">years</values>
                </widget>
            </column>
        </group>
        <group name="advanced" numcolumns="12" valign="bottom">
            <column name="company" numcolumns="2" titleurl="ListEmpresa" order="100">
                <widget type="select" fieldname="idempresa" onclick="EditEmpresa" readonly="dinamic" required="true">
                    <values source="empresas" fieldcode="idempresa" fieldtitle="nombrecorto"/>
                </widget>
            </column>
            <column name="bank-account" numcolumns="2" titleurl="ListFormaPago?activetab=ListCuentaBanco" order="110">
                <widget type="select" fieldname="codcuentabanco" onclick="EditCuentaBanco" parent="idempresa">
                    <values source="cuentasbanco" fieldcode="codcuenta" fieldtitle="descripcion" fieldfilter="idempresa"/>
                </widget>
            </column>
            <column name="active" order="120">
                <widget type="checkbox" fieldname="activa"/>
            </column>
            <column name="domiciled" order="120">
                <widget type="checkbox" fieldname="domiciliado"/>
            </column>
            <column name="paid" order="130">
                <widget type="checkbox" fieldname="pagado"/>
            </column>
            <column name="print-bank-data" order="140">
                <widget type="checkbox" fieldname="imprimir"/>
            </column>
        </group>
    </columns>
</view>
