{% extends "products/index.html" %}
{% load servo_tags %}
{% load mptt_tags %}
{% load i18n %}
{% block second_column %}
{% block category_block %}
{% endblock category_block %}
{% include "pagination.html" with items=products %}
{% endblock second_column %}
{% block third_column %}
- {% trans "Stock Price" %}
- {{ product.price_sales_stock|currency }}
- {% trans "Exchange Price" %}
- {{ product.price_sales_exchange|currency }}
{% if product.component_code %}
- {% trans "Component Group" %}
- {{ product.get_component_code_display }} ({{ product.get_part_type_display }})
{% endif %}
-
-
{% for t in product.tags.all %}
{{ t.tag }}
{% endfor %}
{% for i in inventory %}
{% ifchanged i.location.id %}
{{ i.location.title }}
{% endifchanged %}
- {% trans "Stocked" %}
- {{ i.amount_stocked }}
- {% trans "Ordered" %}
- {{ i.amount_ordered|default:"-" }}
- {% trans "Reserved" %}
- {{ i.amount_reserved|default:"-" }}
{% endfor %}
{% with request.session.current_order_id as co %}
{% if co and product.pk %}
{% trans "Use in" %} #{{ request.session.current_order_code }}
{% endif %}
{% endwith %}
{% trans "Create Sales Order" %}
{% trans "Order" %} |
{% trans "Customer" %} |
{% trans "Price" %} |
{% trans "Created" %} |
{% trans "Dispatched" %} |
{% for i in product.serviceorderitem_set.all reversed %}
{% with i.order as order %}
{{ order.code }} |
{{ order.customer_name|default:"-" }} |
{{ i.price|currency }} |
{{ i.created_at|date:"SHORT_DATE_FORMAT" }} |
{{ i.dispatched_at|date:"SHORT_DATE_FORMAT" }} |
{% endwith %}
{% empty %}
{% trans "No Sales Orders" %} |
{% endfor %}
{% trans "Order" %} |
{% trans "Created" %} |
{% trans "Price" %} |
{% trans "Received" %} |
{% for i in product.purchaseorderitem_set.all reversed %}
{% with i.purchase_order as order %}
{{ order.pk }} |
{{ i.created_at|date:"SHORT_DATE_FORMAT" }} |
{{ i.price|currency }} |
{{ i.received_at|date:"SHORT_DATE_FORMAT" }} |
{% endwith %}
{% empty %}
{% trans "No Purchase Orders" %} |
{% endfor %}
{% trans "Invoice" %} |
{% trans "Order" %} |
{% trans "Created" %} |
{% trans "Price" %} |
{% for i in product.invoiceitem_set.all reversed %}
{{ i.invoice.pk }} |
{% with i.invoice.order as order %}
{{ order.code }} |
{% endwith %}
{{ i.created_at|date:"SHORT_DATE_FORMAT" }} |
{{ i.price|currency }} |
{% empty %}
{% trans "No invoices" %} |
{% endfor %}
{% endblock third_column %}
{% block breadcrumb %}
/{{ product.title }}
{% endblock breadcrumb %}