diff options
Diffstat (limited to 'servo/templates/products/view.html')
-rwxr-xr-x | servo/templates/products/view.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/servo/templates/products/view.html b/servo/templates/products/view.html index 589e7f1..740621d 100755 --- a/servo/templates/products/view.html +++ b/servo/templates/products/view.html @@ -135,13 +135,13 @@ </thead> {% for i in sales %} <tr> - {% with i.order as order %} + {% with i.order as order %} <td><a href="{{ order.get_absolute_url }}">{{ order.code }}</a></td> <td>{{ order.customer_name|default:"-" }}</td> <td>{{ i.price|currency }}</td> <td>{{ i.created_at|date:"SHORT_DATE_FORMAT" }}</td> <td>{{ i.dispatched_at|date:"SHORT_DATE_FORMAT" }}</td> - {% endwith %} + {% endwith %} </tr> {% empty %} <tr><td colspan="5" class="empty muted">{% trans "No Sales Orders" %}</td></tr> @@ -188,9 +188,9 @@ {% for i in invoices %} <tr> <td><a href="{{ i.invoice.get_absolute_url }}">{{ i.invoice.pk|safe }}</a></td> - {% with i.invoice.order as order %} + {% with i.invoice.order as order %} <td><a href="{{ order.get_absolute_url }}">{{ order.code }}</a></td> - {% endwith %} + {% endwith %} <td>{{ i.created_at|date:"SHORT_DATE_FORMAT" }}</td> <td>{{ i.price|currency }}</td> </tr> |