From 0c6d66e7ced5f1c7843eba4221b08db79e56a021 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Thu, 1 Oct 2015 00:31:02 +0300 Subject: Inventory bug fixes and performance enhancements --- servo/templates/orders/reserve_products.html | 4 ++-- servo/templates/products/get_info.html | 4 ++-- servo/templates/shipments/list_incoming.html | 23 +++++++++++------------ 3 files changed, 15 insertions(+), 16 deletions(-) (limited to 'servo/templates') diff --git a/servo/templates/orders/reserve_products.html b/servo/templates/orders/reserve_products.html index 318a28d..08640b5 100755 --- a/servo/templates/orders/reserve_products.html +++ b/servo/templates/orders/reserve_products.html @@ -2,11 +2,11 @@ {% load i18n %} {% block header %} - {% blocktrans with id=order.code %}Reserve all products in order {{ id }}?{% endblocktrans %} + {% blocktrans with id=order.code %}Reserve products in order {{ id }}{% endblocktrans %} {% endblock header %} {% block footer %} -
+ {% csrf_token %}
diff --git a/servo/templates/products/get_info.html b/servo/templates/products/get_info.html index be024e2..262d1e8 100755 --- a/servo/templates/products/get_info.html +++ b/servo/templates/products/get_info.html @@ -38,7 +38,7 @@ {% endifchanged %}
{% trans "Stocked" %}
-
{{ i.amount_stocked }}
+
{{ i.amount_stocked|default:"-" }}
{% trans "Ordered" %}
{{ i.amount_ordered|default:"-" }}
{% trans "Reserved" %}
@@ -56,4 +56,4 @@ {% trans "Edit" %} {% endif %} -{% endblock footer %} \ No newline at end of file +{% endblock footer %} diff --git a/servo/templates/shipments/list_incoming.html b/servo/templates/shipments/list_incoming.html index 3c9da41..96289aa 100755 --- a/servo/templates/shipments/list_incoming.html +++ b/servo/templates/shipments/list_incoming.html @@ -1,8 +1,7 @@ {% extends "shipments/index.html" %} {% load i18n %} -{% block toolbar %} -{% endblock toolbar %} +{% block toolbar %}{% endblock toolbar %} {% block second_column %} {% include "snippets/filtering_form.html" %} @@ -26,24 +25,24 @@ {% if can_receive %} {% endif %} - {% with i.product as p %} - - {{ p.code }}
{{ p.title }} + + {{ i.code }}
{{ i.title }} - {% endwith %} {% with i.purchase_order as po %} - - {% if po.sales_order %} - {{ po.sales_order.code }} + + {% if i.sales_order %} + {{ i.sales_order_ref }} {% endif %} -
{{ po.reference }} +
{{ i.purchase_order_ref }} {{ po.confirmation }} - {{ po.created_by }}
{{ po.submitted_at|date:"SHORT_DATE_FORMAT" }} + {{ i.user_fullname }}
{{ i.created_at|date:"SHORT_DATE_FORMAT" }} {% endwith %} {% empty %} - {% trans "No incoming products" %} + + {% trans "No incoming products" %} + {% endfor %} -- cgit v1.2.3