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 %} |
Saurabh | df2783d | 2016-01-06 15:21:21 +0530 | [diff] [blame^] | 4 | <h1>{{ doc.name }}</h1> |
Rushabh Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 5 | <!-- <h6 class="text-muted">{{ doc._title or doc.doctype }}</h6> --> |
| 6 | {% endblock %} |
| 7 | |
Saurabh | df2783d | 2016-01-06 15:21:21 +0530 | [diff] [blame^] | 8 | {% block breadcrumbs %} |
| 9 | {% include "templates/includes/breadcrumbs.html" %} |
| 10 | {% endblock %} |
| 11 | |
Rushabh Mehta | 51008f2 | 2016-01-01 17:23:12 +0530 | [diff] [blame] | 12 | {% block style %} |
| 13 | <style> |
| 14 | {% include "templates/includes/order/order.css" %} |
| 15 | </style> |
| 16 | {% endblock %} |
Rushabh Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 17 | |
Rushabh Mehta | 51008f2 | 2016-01-01 17:23:12 +0530 | [diff] [blame] | 18 | {% block page_content %} |
Rushabh Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 19 | |
Rushabh Mehta | 3d76686 | 2015-09-16 18:52:52 +0530 | [diff] [blame] | 20 | {% 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] | 21 | |
| 22 | <div class="row"> |
| 23 | <div class="col-xs-6"> |
| 24 | <span class="indicator {{ doc.indicator_color or "darkgrey" }}"> |
| 25 | {{ doc.indicator_title or doc.status or "Submitted" }} |
| 26 | </span> |
Saurabh | 0a0c787 | 2016-01-04 17:37:54 +0530 | [diff] [blame] | 27 | </div> |
Rushabh Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 28 | <div class="col-xs-6 text-muted text-right h6"> |
| 29 | {{ doc.get_formatted("transaction_date") }} |
| 30 | </div> |
| 31 | </div> |
| 32 | |
| 33 | {% if doc._header %} |
| 34 | {{ doc._header }} |
| 35 | {% endif %} |
| 36 | |
| 37 | <div class="order-container"> |
| 38 | |
| 39 | <!-- items --> |
| 40 | <div class="order-item-table"> |
| 41 | <div class="row order-items order-item-header"> |
| 42 | <div class="col-sm-8 col-xs-6 h6"> |
| 43 | {{ _("Item") }} |
| 44 | </div> |
| 45 | <div class="col-sm-2 col-xs-3 text-right h6"> |
| 46 | {{ _("Quantity") }} |
| 47 | </div> |
| 48 | <div class="col-sm-2 col-xs-3 text-right h6"> |
| 49 | {{ _("Amount") }} |
| 50 | </div> |
| 51 | </div> |
| 52 | {% for d in doc.items %} |
| 53 | <div class="row order-items"> |
| 54 | <div class="col-sm-8 col-xs-6"> |
| 55 | {{ item_name_and_description(d) }} |
| 56 | </div> |
| 57 | <div class="col-sm-2 col-xs-3 text-right"> |
| 58 | {{ d.qty }} |
Anand Doshi | 4b12740 | 2015-11-26 18:22:03 +0530 | [diff] [blame] | 59 | {% if d.delivered_qty is defined and d.delivered_qty != None %} |
Rushabh Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 60 | <p class="text-muted small">{{ |
| 61 | _("Delivered: {0}").format(d.delivered_qty) }}</p> |
| 62 | {% endif %} |
| 63 | </div> |
| 64 | <div class="col-sm-2 col-xs-3 text-right"> |
Saurabh | 276d3e6 | 2015-12-31 13:26:36 +0530 | [diff] [blame] | 65 | {{ d.get_formatted("amount") }} |
Anand Doshi | 4b12740 | 2015-11-26 18:22:03 +0530 | [diff] [blame] | 66 | {# 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] | 67 | <p class="text-muted small">{{ |
Saurabh | 9f235b8 | 2015-10-14 13:40:45 +0530 | [diff] [blame] | 68 | _("Rate: {0}").decode("utf8").format(d.get_formatted("rate")) }}</p> |
Rushabh Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 69 | </div> |
| 70 | </div> |
| 71 | {% endfor %} |
| 72 | </div> |
| 73 | |
| 74 | <!-- taxes --> |
| 75 | <div class="order-taxes row small"> |
| 76 | <div class="col-sm-8"><!-- empty --></div> |
| 77 | <div class="col-sm-4"> |
Rushabh Mehta | 3d76686 | 2015-09-16 18:52:52 +0530 | [diff] [blame] | 78 | {% include "erpnext/templates/includes/order/order_taxes.html" %} |
Rushabh Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 79 | </div> |
| 80 | </div> |
| 81 | </div> |
| 82 | |
Saurabh | 276d3e6 | 2015-12-31 13:26:36 +0530 | [diff] [blame] | 83 | <div class="cart-taxes row small"> |
| 84 | <div class="col-sm-8"><!-- empty --></div> |
| 85 | <div class="col-sm-4"> |
Saurabh | df2783d | 2016-01-06 15:21:21 +0530 | [diff] [blame^] | 86 | {% if (doc.doctype=="Sales Order" and doc.per_billed <= 0) |
| 87 | or (doc.doctype=="Sales Invoice" and doc.outstanding_amount > 0) %} |
Saurabh | 276d3e6 | 2015-12-31 13:26:36 +0530 | [diff] [blame] | 88 | <div class="page-header-actions-block" data-html-block="header-actions"> |
| 89 | <p> |
| 90 | <a href="/api/method/erpnext.accounts.doctype.payment_request.payment_request.make_payment_request?dn={{ doc.name }}&dt={{ doc.doctype }}&submit_doc=1&mute_email=1&cart=1" |
| 91 | class="btn btn-primary btn-sm">Pay {{ doc.get_formatted("grand_total") }} </a> |
| 92 | </p> |
Saurabh | 0a0c787 | 2016-01-04 17:37:54 +0530 | [diff] [blame] | 93 | </div> |
Saurabh | 276d3e6 | 2015-12-31 13:26:36 +0530 | [diff] [blame] | 94 | {% endif %} |
Saurabh | 0a0c787 | 2016-01-04 17:37:54 +0530 | [diff] [blame] | 95 | </div> |
Saurabh | 276d3e6 | 2015-12-31 13:26:36 +0530 | [diff] [blame] | 96 | </div> |
| 97 | |
Rushabh Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 98 | {% endblock %} |