Anand Doshi | 1947b17 | 2016-03-23 12:12:38 +0530 | [diff] [blame] | 1 | {% extends "templates/web.html" %} |
Anand Doshi | e3bd78e | 2016-04-22 18:53:21 +0530 | [diff] [blame] | 2 | {% 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] | 3 | |
Saurabh | df2783d | 2016-01-06 15:21:21 +0530 | [diff] [blame] | 4 | {% block breadcrumbs %} |
| 5 | {% include "templates/includes/breadcrumbs.html" %} |
| 6 | {% endblock %} |
| 7 | |
Rushabh Mehta | a334062 | 2016-06-23 18:25:50 +0530 | [diff] [blame] | 8 | {% block title %}{{ doc.name }}{% endblock %} |
| 9 | |
| 10 | {% block header %}<h1>{{ doc.name }}</h1>{% endblock %} |
Rushabh Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 11 | |
Rushabh Mehta | 51008f2 | 2016-01-01 17:23:12 +0530 | [diff] [blame] | 12 | {% block page_content %} |
Rushabh Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 13 | |
Anand Doshi | e3bd78e | 2016-04-22 18:53:21 +0530 | [diff] [blame] | 14 | <div class="row transaction-subheading"> |
Rushabh Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 15 | <div class="col-xs-6"> |
| 16 | <span class="indicator {{ doc.indicator_color or "darkgrey" }}"> |
| 17 | {{ doc.indicator_title or doc.status or "Submitted" }} |
| 18 | </span> |
Saurabh | 0a0c787 | 2016-01-04 17:37:54 +0530 | [diff] [blame] | 19 | </div> |
Anand Doshi | e3bd78e | 2016-04-22 18:53:21 +0530 | [diff] [blame] | 20 | <div class="col-xs-6 text-muted text-right small"> |
| 21 | {{ frappe.utils.formatdate(doc.transaction_date, 'medium') }} |
Rushabh Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 22 | </div> |
| 23 | </div> |
| 24 | |
| 25 | {% if doc._header %} |
| 26 | {{ doc._header }} |
| 27 | {% endif %} |
| 28 | |
| 29 | <div class="order-container"> |
| 30 | |
| 31 | <!-- items --> |
| 32 | <div class="order-item-table"> |
Anand Doshi | e3bd78e | 2016-04-22 18:53:21 +0530 | [diff] [blame] | 33 | <div class="row order-items order-item-header text-muted"> |
| 34 | <div class="col-sm-8 col-xs-6 h6 text-uppercase"> |
Rushabh Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 35 | {{ _("Item") }} |
| 36 | </div> |
Anand Doshi | e3bd78e | 2016-04-22 18:53:21 +0530 | [diff] [blame] | 37 | <div class="col-sm-2 col-xs-3 text-right h6 text-uppercase"> |
Rushabh Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 38 | {{ _("Quantity") }} |
| 39 | </div> |
Anand Doshi | e3bd78e | 2016-04-22 18:53:21 +0530 | [diff] [blame] | 40 | <div class="col-sm-2 col-xs-3 text-right h6 text-uppercase"> |
Rushabh Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 41 | {{ _("Amount") }} |
| 42 | </div> |
| 43 | </div> |
| 44 | {% for d in doc.items %} |
| 45 | <div class="row order-items"> |
| 46 | <div class="col-sm-8 col-xs-6"> |
| 47 | {{ item_name_and_description(d) }} |
| 48 | </div> |
| 49 | <div class="col-sm-2 col-xs-3 text-right"> |
| 50 | {{ d.qty }} |
Anand Doshi | 4b12740 | 2015-11-26 18:22:03 +0530 | [diff] [blame] | 51 | {% if d.delivered_qty is defined and d.delivered_qty != None %} |
Rushabh Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 52 | <p class="text-muted small">{{ |
| 53 | _("Delivered: {0}").format(d.delivered_qty) }}</p> |
| 54 | {% endif %} |
| 55 | </div> |
| 56 | <div class="col-sm-2 col-xs-3 text-right"> |
Saurabh | 276d3e6 | 2015-12-31 13:26:36 +0530 | [diff] [blame] | 57 | {{ d.get_formatted("amount") }} |
Rushabh Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 58 | <p class="text-muted small">{{ |
Rushabh Mehta | 4b9238a | 2016-05-12 15:22:59 +0530 | [diff] [blame] | 59 | _("@ {0}").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 --> |
Anand Doshi | e3bd78e | 2016-04-22 18:53:21 +0530 | [diff] [blame] | 66 | <div class="order-taxes row"> |
| 67 | <div class="col-sm-6"><!-- empty --></div> |
| 68 | <div class="col-sm-6 text-right"> |
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 | |
Saurabh | 276d3e6 | 2015-12-31 13:26:36 +0530 | [diff] [blame] | 74 | <div class="cart-taxes row small"> |
| 75 | <div class="col-sm-8"><!-- empty --></div> |
| 76 | <div class="col-sm-4"> |
Saurabh | 883cc04 | 2016-01-21 15:43:07 +0530 | [diff] [blame] | 77 | {% if enabled_checkout %} |
| 78 | {% if (doc.doctype=="Sales Order" and doc.per_billed <= 0) |
| 79 | or (doc.doctype=="Sales Invoice" and doc.outstanding_amount > 0) %} |
| 80 | <div class="page-header-actions-block" data-html-block="header-actions"> |
| 81 | <p> |
Saurabh | ed08168 | 2016-04-27 12:51:57 +0530 | [diff] [blame] | 82 | <a href="/api/method/erpnext.accounts.doctype.payment_request.payment_request.make_payment_request?dn={{ doc.name }}&dt={{ doc.doctype }}&submit_doc=1" |
Saurabh | 883cc04 | 2016-01-21 15:43:07 +0530 | [diff] [blame] | 83 | class="btn btn-primary btn-sm">Pay {{ doc.get_formatted("grand_total") }} </a> |
| 84 | </p> |
Saurabh | 0a0c787 | 2016-01-04 17:37:54 +0530 | [diff] [blame] | 85 | </div> |
Saurabh | 883cc04 | 2016-01-21 15:43:07 +0530 | [diff] [blame] | 86 | {% endif %} |
Saurabh | 276d3e6 | 2015-12-31 13:26:36 +0530 | [diff] [blame] | 87 | {% endif %} |
Saurabh | 0a0c787 | 2016-01-04 17:37:54 +0530 | [diff] [blame] | 88 | </div> |
Saurabh | 276d3e6 | 2015-12-31 13:26:36 +0530 | [diff] [blame] | 89 | </div> |
| 90 | |
Rushabh Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 91 | {% endblock %} |