{% for production in records %}
{% block company_header %} {% endblock %}
Production Order
Production #
{{ production.code }}
Production State:
{{ production.state }}
Planned Date:
{{ production.planned_date and production.planned_date|dateformat }}
{% if production.effective_date %}
Effective Date:
{{ production.effective_date|dateformat }}
{% endif %}

{% if production.reference %} {% endif %} {% if production.reference %} {% endif %}
ReferenceWarehouse BOM Product Quantity Cost
{{ production.reference }}{{ production.warehouse and production.warehouse.rec_name}} {{ production.bom and production.bom.rec_name or 'N/A' }} {{ production.product and production.product.rec_name or 'N/A' }} {% if production.quantity %} {{ formatLang(production.quantity, production.company.party.lang, digits=production.unit_digits) }} {% if production.uom.symbol != 'u' %}{{ production.uom.symbol }}{% endif %} {% else %} 'N/A' {% endif %} {{ production.cost|currencyformat(production.company.currency.code) }}
Inputs
{% for move in production.inputs %} {% endfor %}
# Item Description Quantity From Location Planned Date Effective Date State
{{ loop.index }} {% if move.product %} {{ move.product.code }} {% else %} - {% endif %} {% if move.product %} {{ move.product.name }} {% else %} {{ move.description }} {% endif %} {{ formatLang(move.quantity, production.company.party.lang, digits=move.unit_digits) }} {% if move.uom.symbol != 'u' %}{{ move.uom.symbol }}{% endif %} {{ move.from_location.rec_name }} {{ move.planned_date and move.planned_date|dateformat or '-' }} {{ move.effective_date and move.effective_date|dateformat or '-' }} {{ move.state }}
Outputs
{% for move in production.outputs %} {% endfor %}
# Item Description Quantity To Location Planned Date Effective Date State
{{ loop.index }} {% if move.product %} {{ move.product.code }} {% else %} - {% endif %} {% if move.product %} {{ move.product.name }} {% else %} {{ move.description }} {% endif %} {{ formatLang(move.quantity, production.company.party.lang, digits=move.unit_digits) }} {% if move.uom.symbol != 'u' %}{{ move.uom.symbol }}{% endif %} {{ move.to_location.rec_name }} {{ move.planned_date and move.planned_date|dateformat or '-' }} {{ move.effective_date and move.effective_date|dateformat or '-' }} {{ move.state }}
{% endfor %}