{% extends 'production_report/reports/base.html' %} {% block title %} Production Order {% endblock %} {% block report_header scoped %} {% set production = record %} Production Order #{{production.code}} {% if production.effective_date %} {% endif %}
Production # {{ production.code or 'N/A' }}
Production State: {{ production.state }}
Planned Date: {{ production.planned_date and production.planned_date|dateformat }}
Effective Date: {{ production.effective_date|dateformat }}
{% endblock report_header %} {% block report_body scoped %} {% set production = record %} {% if production.reference %} {% endif %} {% if production.reference %} {% endif %}
ReferenceWarehouse Product Quantity Cost BOM
{{ production.reference }}{{ production.warehouse and production.warehouse.rec_name}} {{ 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) }} {{ production.bom and production.bom.rec_name or 'N/A' }}
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 }}
{% endblock report_body %}