<?xml version="1.0" encoding="UTF-8"?>
<facturas_proveedor>
    <factura>
        <id defaultValue="autoincrement" type="int(11)"/>
        <empresa defaultValue="1" required="S" type="int(11)"/>
        <anio defaultValue="2026" type="smallint(6)"/>
        <serie defaultValue="A" type="char(10)"/>
        <factura defaultValue="autoincrement" type="int(11)"/>
        <su_factura type="varchar(30)"/>
        <fecha_factura defaultValue="2026/06/15" type="date"/>
        <proveedor required="S" type="int(11)"/>
        <nombre_proveedor type="varchar(50)"/>
        <almacen defaultValue="CENTRAL" type="varchar(30)"/>
        <concepto type="varchar(100)"/>
        <asiento_compras type="int(11)"/>
        <asiento_ejercicio type="smallint(6)"/>
        <cuenta_grupo_compras type="char(14)"/>
        <fecha_traspaso type="date"/>
        <forma_pago defaultValue="CONTADO" type="char(15)"/>
        <divisa defaultValue="EUR" type="char(20)"/>
        <importe_detalles defaultValue="0" type="double(12,2)"/>
        <base_imponible defaultValue="0" type="double(12,2)"/>
        <iva defaultValue="0" type="double(12,2)"/>
        <recargo_equiv defaultValue="0" type="double(12,2)"/>
        <total_factura defaultValue="0" type="double(12,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"/>
        <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)"/>
        <valor_en_euros defaultValue="0" type="double(12,2)"/>
        <tasa_conversion defaultValue="1" type="double(12,4)"/>
        <albaran_id type="int(11)"/>
        <albaran_anio type="smallint(6)"/>
        <albaran_serie type="varchar(1)"/>
        <albaran_num type="int(11)"/>
        <trabajador type="char(30)"/>
        <hinsert defaultValue="current_time()" type="timestamp"/>
        <hupdate defaultValue="current_time()" type="timestamp"/>
        <uinsert type="char(20)"/>
        <uupdate type="char(20)"/>
        <tiene_recibos defaultValue="N" type="char(6)"/>
        <pagada defaultValue="N" type="char(2)"/>
    </factura>
</facturas_proveedor>
