<?xml version="1.0" encoding="UTF-8"?>
<pedidos_cliente>
    <pedido>
        <id defaultValue="autoincrement" type="int(11)"/>
        <empresa defaultValue="1" required="S" type="int(11)"/>
        <pedido defaultValue="autoincrement" type="int(20)"/>
        <anio defaultValue="2026" type="smallint(6)"/>
        <estado defaultValue="PENDIENTE" type="varchar(15)"/>
        <fecha_pedido defaultValue="2026/06/13" type="date"/>
        <cliente required="S" type="int(11)"/>
        <nombre_cliente type="varchar(50)"/>
        <delegacion type="varchar(50)"/>
        <almacen defaultValue="CENTRAL" required="S" type="char(30)"/>
        <forma_pago defaultValue="CONTADO" required="S" type="char(15)"/>
        <bultos defaultValue="0" type="double(10,2)"/>
        <agente type="int(11)"/>
        <nombre_agente type="char(50)"/>
        <porcen_comision defaultValue="0" type="double(10,2)"/>
        <porcen_dto_especial defaultValue="0" type="double(5,2)"/>
        <porcen_dto_pp defaultValue="0" type="double(5,2)"/>
        <divisa defaultValue="EUR" required="S" type="char(20)"/>
        <valor_en_euros defaultValue="0" required="S" type="double(12,2)"/>
        <tasa_conversion defaultValue="1" required="S" type="double(6,3)"/>
        <importe_detalles defaultValue="0" required="S" type="double(12,2)"/>
        <base_imponible defaultValue="0" required="S" type="double(12,2)"/>
        <iva defaultValue="0" required="S" type="double(12,2)"/>
        <recargo_equiv defaultValue="0" required="S" type="double(12,2)"/>
        <total_pedido defaultValue="0" required="S" type="double(12,2)"/>
        <entrega_a_cuenta defaultValue="0" required="S" type="double(12,2)"/>
        <su_pedido type="varchar(50)"/>
        <fecha_salida type="date"/>
        <portes type="double(12,2)"/>
        <tipo_portes type="varchar(20)"/>
        <referencia_portes type="varchar(25)"/>
        <transportista type="char(50)"/>
        <expedicion type="varchar(20)"/>
        <condiciones_entrega type="varchar(255)"/>
        <total_peso defaultValue="0" type="double(12,3)"/>
        <concepto type="varchar(100)"/>
        <observaciones type="varchar(255)"/>
        <albaran_id type="int(11)"/>
        <albaran_anio type="smallint(11)"/>
        <albaran_serie type="varchar(1)"/>
        <albaran_num type="int(11)"/>
        <factura_id type="int(11)"/>
        <factura_anio type="smallint(6)"/>
        <factura_serie type="varchar(1)"/>
        <factura_num type="int(11)"/>
        <pedido_pr_id type="int(11)"/>
        <pedido_pr_anio type="int(11)"/>
        <pedido_pr_num type="int(11)"/>
        <albaran_pr_id type="int(11)"/>
        <albaran_pr_anio type="int(11)"/>
        <albaran_pr_serie type="char(10)"/>
        <albaran_pr_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)"/>
        <api_codigo_pedido type="char(10)"/>
        <api_origen_pedido type="char(10)"/>
    </pedido>
</pedidos_cliente>
