From b36cd5c50493ca3567c5acfef665352bd39eadd3 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Wed, 11 Nov 2015 15:44:10 +0200 Subject: Cleanup --- servo/templates/products/view.html | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'servo/templates/products/view.html') diff --git a/servo/templates/products/view.html b/servo/templates/products/view.html index 7f5f355..f719ed5 100755 --- a/servo/templates/products/view.html +++ b/servo/templates/products/view.html @@ -158,10 +158,11 @@ {% trans "Received" %} + {% for i in product.purchaseorderitem_set.all reversed %} {% with i.purchase_order as order %} - {{ order.pk }} + {{ order.pk|safe }} {{ i.created_at|date:"SHORT_DATE_FORMAT" }} {{ i.price|currency }} {{ i.received_at|date:"SHORT_DATE_FORMAT" }} @@ -170,6 +171,7 @@ {% empty %} {% trans "No Purchase Orders" %} {% endfor %} +
@@ -182,9 +184,10 @@ {% trans "Price" %} + {% for i in product.invoiceitem_set.all reversed %} - {{ i.invoice.pk }} + {{ i.invoice.pk|safe }} {% with i.invoice.order as order %} {{ order.code }} {% endwith %} @@ -194,6 +197,7 @@ {% empty %} {% trans "No invoices" %} {% endfor %} +
@@ -201,5 +205,5 @@ {% endblock third_column %} {% block breadcrumb %} -
  • /{{ product.title }}
  • +
  • /{{ product.title }}
  • {% endblock breadcrumb %} -- cgit v1.2.3