Rushabh Mehta | 51008f2 | 2016-01-01 17:23:12 +0530 | [diff] [blame^] | 1 | {% extends "templates/web.html" %} |
| 2 | |
Rushabh Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 3 | {% block header %} |
| 4 | <h1>{{ doc.name }}</h1> |
| 5 | <!-- <h6 class="text-muted">{{ doc._title or doc.doctype }}</h6> --> |
| 6 | {% endblock %} |
| 7 | |
Rushabh Mehta | 51008f2 | 2016-01-01 17:23:12 +0530 | [diff] [blame^] | 8 | {% block style %} |
| 9 | <style> |
| 10 | {% include "templates/includes/order/order.css" %} |
| 11 | </style> |
| 12 | {% endblock %} |
Rushabh Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 13 | |
Rushabh Mehta | 51008f2 | 2016-01-01 17:23:12 +0530 | [diff] [blame^] | 14 | {% block page_content %} |
Rushabh Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 15 | |
Rushabh Mehta | 3d76686 | 2015-09-16 18:52:52 +0530 | [diff] [blame] | 16 | {% 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] | 17 | |
| 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 Doshi | 4b12740 | 2015-11-26 18:22:03 +0530 | [diff] [blame] | 55 | {% if d.delivered_qty is defined and d.delivered_qty != None %} |
Rushabh Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 56 | <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 Doshi | 4b12740 | 2015-11-26 18:22:03 +0530 | [diff] [blame] | 62 | {# output of get_formatted("rate") is unicode, to replace unicode use _("text {0}").decode("utf8").format(val) #} |
Rushabh Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 63 | <p class="text-muted small">{{ |
Saurabh | 9f235b8 | 2015-10-14 13:40:45 +0530 | [diff] [blame] | 64 | _("Rate: {0}").decode("utf8").format(d.get_formatted("rate")) }}</p> |
Rushabh Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 65 | </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 Mehta | 3d76686 | 2015-09-16 18:52:52 +0530 | [diff] [blame] | 74 | {% include "erpnext/templates/includes/order/order_taxes.html" %} |
Rushabh Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 75 | </div> |
| 76 | </div> |
| 77 | </div> |
| 78 | |
| 79 | {% endblock %} |