{% extends "base.html" %} {% load i18n %} {% load static %} {% load inventree_extras %} {% block page_title %} InvenTree | {{ order }} {% endblock %} {% block content %}

{{ order }}

{{ order.description }}

{% if order.status == OrderStatus.PENDING and order.lines.count > 0 %} {% elif order.status == OrderStatus.PLACED %} {% endif %} {% if order.status == OrderStatus.PENDING or order.status == OrderStatus.PLACED %} {% endif %}

{% trans "Purchase Order Details" %}

{% if order.link %} {% endif %} {% if order.issue_date %} {% endif %} {% if order.status == OrderStatus.COMPLETE %} {% endif %}
{% trans "Supplier" %} {{ order.supplier }}
{% trans "Status" %} {% include "order/order_status.html" %}
External Link {{ order.link }}
{% trans "Created" %} {{ order.creation_date }}{{ order.created_by }}
{% trans "Issued" %} {{ order.issue_date }}
{% trans "Received" %} {{ order.complete_date }}{{ order.received_by }}

{% block details %} {% endblock %}
{% endblock %} {% block js_ready %} {{ block.super }} {% if order.status == OrderStatus.PENDING and order.lines.count > 0 %} $("#place-order").click(function() { launchModalForm("{% url 'po-issue' order.id %}", { reload: true, }); }); {% endif %} $("#edit-order").click(function() { launchModalForm("{% url 'po-edit' order.id %}", { reload: true, } ); }); $("#cancel-order").click(function() { launchModalForm("{% url 'po-cancel' order.id %}", { reload: true, }); }); {% endblock %}