<?xml version="1.0" encoding="UTF-8"?>
<facturas_cliente>
    <factura>
        <id defaultValue="autoincrement" type="int(11)"/>
        <empresa defaultValue="1" required="S" type="int(11)"/>
        <anio defaultValue="2026" type="smallint(6)"/>
        <serie defaultValue="A" required="S" type="char(10)"/>
        <factura defaultValue="autoincrement" type="int(11)"/>
        <fecha_factura defaultValue="2026/06/09" type="date"/>
        <fecha_expedicion type="date"/>
        <cliente required="S" type="int(11)"/>
        <nombre_cliente type="varchar(50)"/>
        <delegacion type="varchar(50)"/>
        <almacen defaultValue="CENTRAL" required="S" type="varchar(30)"/>
        <concepto type="char(250)"/>
        <asiento_ventas type="int(11)"/>
        <asiento_ejercicio type="smallint(6)"/>
        <cuenta_grupo_ventas type="char(14)"/>
        <fecha_traspaso type="date"/>
        <agente type="int(11)"/>
        <nombre_agente type="char(50)"/>
        <forma_pago defaultValue="CONTADO" required="S" type="char(15)"/>
        <divisa defaultValue="EUR" required="S" type="char(20)"/>
        <presupuesto_id type="int(11)"/>
        <presupuesto_anio type="int(11)"/>
        <presupuesto_num type="int(11)"/>
        <albaran_id type="int(11)"/>
        <albaran_anio type="int(11)"/>
        <albaran_serie type="char(1)"/>
        <albaran_num type="int(11)"/>
        <bultos type="int(11)"/>
        <tasa_conversion defaultValue="1" type="double(12,4)"/>
        <valor_en_euros defaultValue="0" type="double(20,2)"/>
        <importe_detalles defaultValue="0" type="double(20,2)"/>
        <base_imponible defaultValue="0" type="double(20,2)"/>
        <iva defaultValue="0" type="double(20,2)"/>
        <recargo_equiv defaultValue="0" type="double(12,2)"/>
        <total_factura defaultValue="0" type="double(20,2)"/>
        <porcen_dto_pp defaultValue="0" type="double(5,2)"/>
        <porcen_dto_especial defaultValue="0" type="double(5,2)"/>
        <porcen_rec_financiero defaultValue="0" type="double(5,2)"/>
        <rec_financiero defaultValue="0" type="double(12,2)"/>
        <entrega_a_cuenta defaultValue="0" type="double(12,2)"/>
        <fecha_vto type="date"/>
        <pagada defaultValue="N" type="char(2)"/>
        <tiene_recibos defaultValue="N" type="char(6)"/>
        <observaciones type="varchar(255)"/>
        <porcen_irpf defaultValue="0" type="double(5,2)"/>
        <irpf defaultValue="0" type="double(12,2)"/>
        <tipo_factura defaultValue="FACTURA" type="char(20)"/>
        <check_intrastat defaultValue="N" type="char(1)"/>
        <regimen_iva defaultValue="General" type="varchar(13)"/>
        <trabajador type="char(30)"/>
        <hinsert defaultValue="current_time()" type="timestamp"/>
        <hupdate defaultValue="current_time()" type="timestamp"/>
        <uinsert type="char(20)"/>
        <uupdate type="char(20)"/>
        <tpv type="char(20)"/>
        <porcen_comision defaultValue="0" type="double(5,2)"/>
        <check_impresa defaultValue="N" type="char(2)"/>
        <check_firmada defaultValue="N" type="char(2)"/>
        <check_publicada defaultValue="N" type="char(2)"/>
        <check_enviada defaultValue="N" type="char(2)"/>
        <alq_id type="int(11)"/>
        <alq_modalidad type="char(10)"/>
        <alq_porcentaje type="double(5,2)"/>
        <alq_unidades type="int(11)"/>
        <api_codigo_factura type="char(10)"/>
        <api_origen_factura type="char(10)"/>
        <medio_de_pago type="char(10)"/>
        <ultimos_digitos type="char(4)"/>
        <cobrado_moneda defaultValue="0" type="double(12,2)"/>
        <cobrado_tarjeta defaultValue="0" type="double(12,2)"/>
        <entregado_moneda defaultValue="0" type="double(12,2)"/>
        <entregado_tarjeta defaultValue="0" type="double(12,2)"/>
        <entregado_vales defaultValue="0" type="double(12,2)"/>
        <entregado_otros defaultValue="0" type="double(12,2)"/>
        <devuelto_moneda defaultValue="0" type="double(12,2)"/>
        <fecha_pago type="date"/>
        <caja_venta type="int(12)"/>
        <caja_cobro type="int(12)"/>
        <devuelto_tarjeta defaultValue="0" type="double(12,2)"/>
        <devuelto_vales defaultValue="0" type="double(12,2)"/>
    </factura>
</facturas_cliente>
