Rushabh Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 1 | {% block header %} |
| 2 | <h1>{{ doc.name }}</h1> |
| 3 | <!-- <h6 class="text-muted">{{ doc._title or doc.doctype }}</h6> --> |
| 4 | {% endblock %} |
| 5 | |
Rushabh Mehta | 3d76686 | 2015-09-16 18:52:52 +0530 | [diff] [blame] | 6 | {% block style %}{% include "templates/includes/order/order.css" %}{% endblock %} |
Rushabh Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 7 | |
| 8 | {% block content %} |
| 9 | |
Rushabh Mehta | 3d76686 | 2015-09-16 18:52:52 +0530 | [diff] [blame] | 10 | {% from "erpnext/templates/includes/order/order_macros.html" import item_name_and_description %} |
Rushabh Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 11 | |
| 12 | <div class="row"> |
| 13 | <div class="col-xs-6"> |
| 14 | <span class="indicator {{ doc.indicator_color or "darkgrey" }}"> |
| 15 | {{ doc.indicator_title or doc.status or "Submitted" }} |
| 16 | </span> |
| 17 | </div> |
| 18 | <div class="col-xs-6 text-muted text-right h6"> |
| 19 | {{ doc.get_formatted("transaction_date") }} |
| 20 | </div> |
| 21 | </div> |
| 22 | |
| 23 | {% if doc._header %} |
| 24 | {{ doc._header }} |
| 25 | {% endif %} |
| 26 | |
| 27 | <div class="order-container"> |
| 28 | |
| 29 | <!-- items --> |
| 30 | <div class="order-item-table"> |
| 31 | <div class="row order-items order-item-header"> |
| 32 | <div class="col-sm-8 col-xs-6 h6"> |
| 33 | {{ _("Item") }} |
| 34 | </div> |
| 35 | <div class="col-sm-2 col-xs-3 text-right h6"> |
| 36 | {{ _("Quantity") }} |
| 37 | </div> |
| 38 | <div class="col-sm-2 col-xs-3 text-right h6"> |
| 39 | {{ _("Amount") }} |
| 40 | </div> |
| 41 | </div> |
| 42 | {% for d in doc.items %} |
| 43 | <div class="row order-items"> |
| 44 | <div class="col-sm-8 col-xs-6"> |
| 45 | {{ item_name_and_description(d) }} |
| 46 | </div> |
| 47 | <div class="col-sm-2 col-xs-3 text-right"> |
| 48 | {{ d.qty }} |
| 49 | {% if d.delivered_qty != None %} |
| 50 | <p class="text-muted small">{{ |
| 51 | _("Delivered: {0}").format(d.delivered_qty) }}</p> |
| 52 | {% endif %} |
| 53 | </div> |
| 54 | <div class="col-sm-2 col-xs-3 text-right"> |
| 55 | {{ d.get_formatted("amount") }} |
Saurabh | 9f235b8 | 2015-10-14 13:40:45 +0530 | [diff] [blame] | 56 | <!-- output of get_formatted("rate") is unicode, to replace unicode use |
| 57 | _("text {0}").decode("utf8").format(val) --> |
Rushabh Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 58 | <p class="text-muted small">{{ |
Saurabh | 9f235b8 | 2015-10-14 13:40:45 +0530 | [diff] [blame] | 59 | _("Rate: {0}").decode("utf8").format(d.get_formatted("rate")) }}</p> |
Rushabh Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 60 | </div> |
| 61 | </div> |
| 62 | {% endfor %} |
| 63 | </div> |
| 64 | |
| 65 | <!-- taxes --> |
| 66 | <div class="order-taxes row small"> |
| 67 | <div class="col-sm-8"><!-- empty --></div> |
| 68 | <div class="col-sm-4"> |
Rushabh Mehta | 3d76686 | 2015-09-16 18:52:52 +0530 | [diff] [blame] | 69 | {% include "erpnext/templates/includes/order/order_taxes.html" %} |
Rushabh Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 70 | </div> |
| 71 | </div> |
| 72 | </div> |
| 73 | |
| 74 | {% endblock %} |