Estimado,

{{ orden_entrega.cliente.razon_social }}

A continuación detallamos el status de su carga:


{% for notif in orden_entrega.get_ultima_notificacion %} {% endfor %}
Última Notificación
{{ notif.fecha_notificacion|date:"d/m/Y g:i:s A" }}, {{ notif.descripcion }}

Información de la Orden de Entrega
Fecha Emisión: {{ orden_entrega.fecha_creacion|date:"d/m/Y g:i:s A" }}
Código: {{ orden_entrega.codigo }}
Placa: {{ orden_entrega.vehiculo.placa }}
Chofer: {{ orden_entrega.chofer }}
Descripción de la Orden: {{ orden_entrega.descripcion|default:'N/A' }}

{% if orden_entrega.get_secuencial > 1 %}
{% for notif in orden_entrega.get_notificaciones_asc %} {% endfor %}
Historial de Viaje
{{ notif.fecha_notificacion|date:"d/m/Y g:i:s A" }}, {{ notif.descripcion }}

{% endif %} {% if orden_entrega.detalle_envio %}
Información del Envío
OCE: {% if orden_entrega.detalle_envio.envio.oce == 'IMP' %} Importación {% else %} Exportación {% endif %}
Fecha Apertura: {{ orden_entrega.detalle_envio.envio.fecha_apertura|date:"d/m/Y g:i:s A" }}
Fecha Arribo/Salida: {% if orden_entrega.detalle_envio.envio.oce == 'IMP' %} {{ orden_entrega.detalle_envio.envio.fecha_arribo|date:"d/m/Y g:i:s A"|default:'N/A' }} {% endif %} {% if orden_entrega.detalle_envio.envio.oce == 'EXP' %} {{ orden_entrega.detalle_envio.envio.fecha_salida|date:"d/m/Y g:i:s A"|default:'N/A' }} {% endif %}
Línea Naviera: {{ orden_entrega.detalle_envio.envio.linea_naviera.razon_social|default:'N/A' }}
# Manifiesto: {{ orden_entrega.detalle_envio.envio.numero_manifiesto|default:'N/A' }}
Agencia de Carga/Consolidadora: {{ orden_entrega.detalle_envio.envio.agencia_carga.razon_social|default:'N/A' }}
# Refrendo: {{ orden_entrega.detalle_envio.envio.numero_refrendo|default:'N/A' }}
Bodega: {{ orden_entrega.detalle_envio.envio.bodega.nombre|default:'N/A' }}
# Orden: {{ orden_entrega.detalle_envio.envio.numero_orden|default:'N/A' }}
#BL (HBL/AWB): {{ orden_entrega.detalle_envio.envio.numero_bl|default:'N/A' }}
#MASTER BL (MBL): {{ orden_entrega.detalle_envio.envio.numero_master_bl|default:'N/A' }}
Ejecutivo de Cuenta: {{ orden_entrega.detalle_envio.envio.ejecutivo.get_full_name }}   ({{ orden_entrega.detalle_envio.envio.ejecutivo.username }})
Descripción del envío: {{ orden_entrega.detalle_envio.envio.descripcion|default:'N/A' }}

{% endif %} {% if orden_entrega.detalle_envio and orden_entrega.detalle_envio.tipo_detalle == orden_entrega.detalle_envio.TIPO_DETALLE_CONTENEDOR %}
Información del contenedor
Código: {{ orden_entrega.detalle_envio.codigo|default:'N/A' }} Tipo: {{ orden_entrega.detalle_envio.get_tipo_display|default:'N/A' }}
Garantía: {{ orden_entrega.detalle_envio.garantia|default:'N/A' }} Valor Garantía: {{ orden_entrega.detalle_envio.valor_garantia|default:'N/A' }}
Peso Manifestado [ Bruto(Kg.) ]: {{ orden_entrega.detalle_envio.peso_bruto_manifestado|default:'N/A' }} Peso Manifestado [ Neto(Kg.) ]: {{ orden_entrega.detalle_envio.peso_neto_manifestado|default:'N/A' }}
Peso Recibido [ Bruto(Kg.) ]: {{ orden_entrega.detalle_envio.peso_bruto|default:'N/A' }} Peso Recibido [ Tara (Kg.) ]: {{ orden_entrega.detalle_envio.peso_neto|default:'N/A' }} Peso Recibido [ Neto(Kg.) ]: {{ orden_entrega.detalle_envio.tara|default:'N/A' }}
Descripción: {{ orden_entrega.detalle_envio.descripcion|default:'N/A' }}

{% endif %} {% if orden_entrega.detalle_envio and orden_entrega.detalle_envio.tipo_detalle == orden_entrega.detalle_envio.TIPO_DETALLE_CARGA_SUELTA %}
Información de la Carga Suelta:
Tipo {{ orden_entrega.detalle_envio.get_tipo_display|default:'N/A' }} Cantidad: {{ orden_entrega.detalle_envio.cantidad|default:'N/A' }} Embalaje: {{ orden_entrega.detalle_envio.get_embalaje_display|default:'N/A' }}
Peso Bruto(Kg.): {{ orden_entrega.detalle_envio.peso_bruto|default:'N/A' }} Peso Neto(Kg.): {{ orden_entrega.detalle_envio.peso_neto|default:'N/A' }}

{% endif %} {% if orden_entrega.detalle_envio and orden_entrega.detalle_envio.tipo_detalle == orden_entrega.detalle_envio.TIPO_DETALLE_GRANEL %}
Información del Granel:
Cantidad {{ orden_entrega.detalle_envio.cantidad|default:'N/A' }}
Peso Bruto(Kg.): {{ orden_entrega.detalle_envio.peso_bruto|default:'N/A' }} Peso Neto(Kg.): {{ orden_entrega.detalle_envio.peso_neto|default:'N/A' }}
Descripción: {{ orden_entrega.detalle_envio.descripcion|default:'N/A' }}

{% endif %}