diff options
author | Filipp Lepalaan <filipp@mac.com> | 2015-08-04 10:11:24 +0300 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2015-08-04 10:11:24 +0300 |
commit | 63b0fc6269b38edf7234b9f151b80d81f614c0a3 (patch) | |
tree | 555de3068f33f8dddb4619349bbea7d9b7c822fd /servo/templates/products/receive_item.html | |
download | Servo-63b0fc6269b38edf7234b9f151b80d81f614c0a3.tar.gz Servo-63b0fc6269b38edf7234b9f151b80d81f614c0a3.tar.bz2 Servo-63b0fc6269b38edf7234b9f151b80d81f614c0a3.zip |
Initial commit
First public commit
Diffstat (limited to 'servo/templates/products/receive_item.html')
-rwxr-xr-x | servo/templates/products/receive_item.html | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/servo/templates/products/receive_item.html b/servo/templates/products/receive_item.html new file mode 100755 index 0000000..275fbd2 --- /dev/null +++ b/servo/templates/products/receive_item.html @@ -0,0 +1,51 @@ +{% extends "modal.html" %} +{% load servo_tags %} +{% load i18n %} + +{% block header %} + {{ item.code }} +{% endblock header %} + +{% block body %} + <form method="post" action="{{ url }}" class="form-horizontal"> + {% csrf_token %} + <h4>{{ item.title }}</h4> + <dl class="dl-horizontal"> + {% with item.purchase_order as po %} + <dt>{% trans "Ordered" %}</dt> + <dd>{{ po.created_at|date:"SHORT_DATE_FORMAT" }}, {{ po.created_by }}</dd> + <dt>{% trans "Service Order" %}</dt> + {% if po.sales_order %} + <dd><a href="{% url 'orders-edit' po.sales_order.pk %}">{{ po.sales_order.code }}</a></dd> + {% else %} + <dd>{% trans "Stocking Order" %} {{ po.reference }}</dd> + {% endif %} + <dt>{% trans "Reference" %}</dt> + <dd>{{ po.reference|default:"-" }}</dd> + {% if item.received_at %} + <dt>{% trans "Received" %}</dt> + <dd>{{ item.received_at|date:"SHORT_DATE_FORMAT" }}, {{ item.received_by }}</dd> + {% endif %} + {% if item.reference %} + <dt>{% trans "Reference" %}</dt> + <dd>{{ item.reference }}</dd> + {% endif %} + <dt>{% trans "Confirmation" %}</dt> + <dd>{{ po.confirmation|default:"-" }}</dd> + {% endwith %} + <dt>{% trans "Purchase Price" %}</dt> + <dd>{{ form.instance.price|currency|default:"-" }}</dd> + </dl> + {% include "form_field_snippet.html" with field=form.amount %} + {% if item.product.is_serialized %} + {% include "form_field_snippet.html" with field=form.sn %} + {% endif %} + </form> +{% endblock body %} + +{% block footer %} + <button class="btn" data-dismiss="modal">{% trans "Cancel" %}</button> +{% if not item.received_at %} + <button type="submit" class="btn btn-primary">{% trans "Receive" %}</button> +{% endif %} +{% endblock footer %} |