{% extends 'report_html_stock/reports/base.html' %} {% block title %} Shipment {{ records|join('# ', 'reference') }} {% endblock %} {% block report_header scoped %} {% set shipment = record %} Delivery Note
Shipment # {{ shipment.code }}
Date {{ shipment.effective_date or datetime.datetime.today()|dateformat }}
{% endblock report_header %} {% block report_body scoped %} {% set shipment = record %}
Ship To
{% for line in shipment.delivery_address.full_address.split('\n') %} {{ line }}
{% endfor %} {% if shipment.customer.phone %} Phone: {{ shipment.customer.phone }}
{% endif %} {% if shipment.customer.email %} Email: {{ shipment.customer.email }}
{% endif %}
Reference Customer Code Carrier Tracking Number Package Weight
{{ shipment.origins or '' }}{{ ', ' if (shipment.origins and shipment.reference) else '' }}{{ shipment.reference or '' }} {{ shipment.customer.code }} {{ shipment.carrier and shipment.carrier.rec_name or '-' }} {{ shipment.tracking_number and shipment.tracking_number.rec_name or '-' }} {% if shipment.package_weight %} {{ formatLang(shipment.package_weight, shipment.customer.lang, digits=2) }} {{ shipment.weight_uom.symbol }} {% else %} {{ '-' }} {% endif %}
{% for move in shipment.outgoing_moves|selectattr("quantity") %} {% endfor %}
# Item Description Quantity
{{ loop.index }} {% if move.product %} {{ move.product.code }} {% endif %} {% if move.product %} {{ move.product.name }} {% endif %} {{ formatLang(move.quantity, shipment.customer.lang, digits=move.unit_digits) }} {% if move.uom.symbol != 'u' %}{{ move.uom.symbol }}{% endif %}
{% endblock report_body%}