blob: 26dbed6a3e17c72d5295be834c7eb2beb2038dcb [file] [log] [blame]
Rushabh Mehta51008f22016-01-01 17:23:12 +05301{% extends "templates/web.html" %}
2
Rushabh Mehta156ce602015-09-11 18:49:59 +05303{% block header %}
4<h1>{{ doc.name }}</h1>
5<!-- <h6 class="text-muted">{{ doc._title or doc.doctype }}</h6> -->
6{% endblock %}
7
Rushabh Mehta51008f22016-01-01 17:23:12 +05308{% block style %}
9<style>
10 {% include "templates/includes/order/order.css" %}
11</style>
12{% endblock %}
Rushabh Mehta156ce602015-09-11 18:49:59 +053013
Rushabh Mehta51008f22016-01-01 17:23:12 +053014{% block page_content %}
Rushabh Mehta156ce602015-09-11 18:49:59 +053015
Rushabh Mehta3d766862015-09-16 18:52:52 +053016{% from "erpnext/templates/includes/order/order_macros.html" import item_name_and_description %}
Rushabh Mehta156ce602015-09-11 18:49:59 +053017
18<div class="row">
19 <div class="col-xs-6">
20 <span class="indicator {{ doc.indicator_color or "darkgrey" }}">
21 {{ doc.indicator_title or doc.status or "Submitted" }}
22 </span>
23 </div>
24 <div class="col-xs-6 text-muted text-right h6">
25 {{ doc.get_formatted("transaction_date") }}
26 </div>
27</div>
28
29{% if doc._header %}
30{{ doc._header }}
31{% endif %}
32
33<div class="order-container">
34
35 <!-- items -->
36 <div class="order-item-table">
37 <div class="row order-items order-item-header">
38 <div class="col-sm-8 col-xs-6 h6">
39 {{ _("Item") }}
40 </div>
41 <div class="col-sm-2 col-xs-3 text-right h6">
42 {{ _("Quantity") }}
43 </div>
44 <div class="col-sm-2 col-xs-3 text-right h6">
45 {{ _("Amount") }}
46 </div>
47 </div>
48 {% for d in doc.items %}
49 <div class="row order-items">
50 <div class="col-sm-8 col-xs-6">
51 {{ item_name_and_description(d) }}
52 </div>
53 <div class="col-sm-2 col-xs-3 text-right">
54 {{ d.qty }}
Anand Doshi4b127402015-11-26 18:22:03 +053055 {% if d.delivered_qty is defined and d.delivered_qty != None %}
Rushabh Mehta156ce602015-09-11 18:49:59 +053056 <p class="text-muted small">{{
57 _("Delivered: {0}").format(d.delivered_qty) }}</p>
58 {% endif %}
59 </div>
60 <div class="col-sm-2 col-xs-3 text-right">
61 {{ d.get_formatted("amount") }}
Anand Doshi4b127402015-11-26 18:22:03 +053062 {# output of get_formatted("rate") is unicode, to replace unicode use _("text {0}").decode("utf8").format(val) #}
Rushabh Mehta156ce602015-09-11 18:49:59 +053063 <p class="text-muted small">{{
Saurabh9f235b82015-10-14 13:40:45 +053064 _("Rate: {0}").decode("utf8").format(d.get_formatted("rate")) }}</p>
Rushabh Mehta156ce602015-09-11 18:49:59 +053065 </div>
66 </div>
67 {% endfor %}
68 </div>
69
70 <!-- taxes -->
71 <div class="order-taxes row small">
72 <div class="col-sm-8"><!-- empty --></div>
73 <div class="col-sm-4">
Rushabh Mehta3d766862015-09-16 18:52:52 +053074 {% include "erpnext/templates/includes/order/order_taxes.html" %}
Rushabh Mehta156ce602015-09-11 18:49:59 +053075 </div>
76 </div>
77</div>
78
79{% endblock %}