<?xml version="1.0" encoding="UTF-8"?>
<pedidos_proveedor>
    <pedido>
        <id defaultValue="autoincrement" type="int(11)"/>
        <empresa defaultValue="1" required="S" type="int(11)"/>
        <pedido required="S" type="int(20)"/>
        <anio defaultValue="2026" required="S" type="smallint(6)"/>
        <estado defaultValue="PENDIENTE" required="S" type="varchar(10)"/>
        <fecha_pedido defaultValue="2026/06/13" required="S" type="date"/>
        <proveedor required="S" type="int(11)"/>
        <nombre_proveedor required="S" type="varchar(50)"/>
        <almacen defaultValue="CENTRAL" required="S" type="varchar(30)"/>
        <forma_pago defaultValue="CONTADO" required="S" type="char(15)"/>
        <bultos defaultValue="0" type="double(10,0)"/>
        <divisa defaultValue="EUR" required="S" type="varchar(20)"/>
        <tasa_conversion defaultValue="1" required="S" type="double(5,2)"/>
        <valor_en_euros defaultValue="0" required="S" type="double"/>
        <porcen_dto_especial defaultValue="0" type="double(5,2)"/>
        <porcen_dto_pp defaultValue="0" type="double(5,2)"/>
        <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_pedido defaultValue="0" type="double(12,2)"/>
        <su_pedido type="varchar(50)"/>
        <fecha_entrada type="date"/>
        <portes type="double(12,2)"/>
        <tipo_portes type="varchar(20)"/>
        <expedicion type="varchar(20)"/>
        <condiciones_entrega type="varchar(255)"/>
        <observaciones type="varchar(255)"/>
        <presupuesto_id type="int(11)"/>
        <albaran_id type="int(11)"/>
        <albaran_anio type="smallint(6)"/>
        <albaran_serie type="char(1)"/>
        <albaran_num type="int(11)"/>
        <factura_id type="int(11)"/>
        <factura_anio type="smallint(6)"/>
        <factura_serie type="char(1)"/>
        <factura_num type="int(11)"/>
        <pedido_cl_id type="int(11)"/>
        <pedido_cl_anio type="int(11)"/>
        <pedido_cl_num type="int(11)"/>
        <trabajador type="char(30)"/>
        <hinsert defaultValue="current_date()" type="timestamp"/>
        <hupdate defaultValue="current_date()" type="timestamp"/>
        <uinsert type="char(20)"/>
    </pedido>
</pedidos_proveedor>
