From 11d9312c45abb9c566050fa7866679e96c6505dc Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Sat, 15 Jun 2019 15:33:10 +1000 Subject: [PATCH] Improve rendering of purchase order table --- .../order/purchase_order_detail.html | 26 ++++++++++++------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/InvenTree/order/templates/order/purchase_order_detail.html b/InvenTree/order/templates/order/purchase_order_detail.html index 185eba4cad..1eee598fa8 100644 --- a/InvenTree/order/templates/order/purchase_order_detail.html +++ b/InvenTree/order/templates/order/purchase_order_detail.html @@ -74,20 +74,24 @@ InvenTree | {{ order }} {% endif %} + - - - - - + + + + + + {% if not order.status == OrderStatus.PENDING %} - + {% endif %} - + {% if order.status == OrderStatus.PENDING %} - + {% endif %} + + {% for line in order.lines.all %} + {% else %} - + {% endif %} @@ -124,6 +129,7 @@ InvenTree | {{ order }} {% endif %} {% endfor %} +
LinePartOrder CodeReferenceQuantityLinePartDescriptionOrder CodeReferenceQuantityReceivedReceivedNoteNote
@@ -98,9 +102,10 @@ InvenTree | {{ order }} {% include "hover_image.html" with image=line.part.part.image hover=True %} {{ line.part.part.full_name }} {{ line.part.part.description }} {{ line.part.SKU }}Warning: Part has been deleted.Warning: Part has been deleted.{{ line.reference }} {{ line.quantity }}
{% if order.notes %} @@ -182,6 +188,8 @@ $('#new-po-line').click(function() { {% endif %} $("#po-lines-table").bootstrapTable({ + search: true, + sortable: true, });