mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Added details page for SupplierOrder
This commit is contained in:
parent
f4aa09a354
commit
d00f9f74e4
@ -1,4 +1,4 @@
|
||||
{% include "base.html" %}
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<h3>Build Details</h3>
|
||||
|
@ -1,6 +1,6 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block contents %}
|
||||
{% block content %}
|
||||
|
||||
<table class="table table-striped">
|
||||
<tr>
|
||||
|
@ -1,7 +1,50 @@
|
||||
{% include "base.html" %}
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
Details for supplier order {{ order.id }}.
|
||||
<h3>Supplier Order Details</h3>
|
||||
|
||||
<table class='table table-striped'>
|
||||
<tr>
|
||||
<td>Reference</td>
|
||||
<td>{{ order.internal_ref }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Supplier</td>
|
||||
<td>
|
||||
{% if order.supplier %}
|
||||
<a href="{% url 'supplier-detail-orders' order.supplier.id %}">{{ order.supplier.name }}</a>
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Status</td>
|
||||
<td>{% include "supplier/order_status.html" with order=order %}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Created Date</td>
|
||||
<td>{{ order.created_date }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Issued Date</td>
|
||||
<td>{{ order.issued_date }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Delivered Date</td>
|
||||
<td>{{ order.delivery_date }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
{% if order.notes %}
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading"><b>Notes</b></div>
|
||||
<div class="panel-body">{{ order.notes }}</div>
|
||||
</div>
|
||||
|
||||
<h2>TODO</h2>
|
||||
Here we list all the line ites which exist under this order...
|
||||
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
13
InvenTree/supplier/templates/supplier/order_status.html
Normal file
13
InvenTree/supplier/templates/supplier/order_status.html
Normal file
@ -0,0 +1,13 @@
|
||||
{% if order.status == order.PENDING %}
|
||||
<span class='label label-info'>
|
||||
{% elif order.status == order.PLACED %}
|
||||
<span class='label label-primary'>
|
||||
{% elif order.status == order.RECEIVED %}
|
||||
<span class='label label-success'>
|
||||
{% elif order.status == order.CANCELLED %}
|
||||
<span class='label label-warning'>
|
||||
{% else %}
|
||||
<span class='label label-danger'>
|
||||
{% endif %}
|
||||
{{ order.get_status_display }}
|
||||
</span>
|
@ -18,7 +18,7 @@
|
||||
<td><a href="{% url 'supplier-order-detail' order.id %}">{{ order.internal_ref }}</a></td>
|
||||
<td>{% if order.issued_date %}{{ order.issued_date }}{% endif %}</td>
|
||||
<td>{% if order.delivery_date %}{{ order.delivery_date }}{% endif %}</td>
|
||||
<td>{{ order.get_status_display }}</td>
|
||||
<td>{% include "supplier/order_status.html" with order=order %}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
|
@ -33,7 +33,7 @@ InvenTree
|
||||
|
||||
{% include "navbar.html" %}
|
||||
|
||||
<div class="container-fluid inventree-content">
|
||||
<div class="container container-fluid inventree-content">
|
||||
{% block content %}
|
||||
<!-- Each view fills in here.. -->
|
||||
{% endblock %}
|
||||
|
Loading…
Reference in New Issue
Block a user