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 | |
Rushabh Mehta | dbb5154 | 2017-08-10 21:06:09 +0530 | [diff] [blame] | 10 | {% block header %} |
| 11 | <h1>{{ doc.name }}</h1> |
| 12 | {% endblock %} |
| 13 | |
| 14 | {% block header_actions %} |
| 15 | <a class='btn btn-xs btn-default' href='/printview?doctype={{ doc.doctype}}&name={{ doc.name }}&format={{ print_format }}' target="_blank" rel="noopener noreferrer">{{ _("Print") }}</a> |
| 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 | |
Anand Doshi | e3bd78e | 2016-04-22 18:53:21 +0530 | [diff] [blame] | 20 | <div class="row transaction-subheading"> |
Rushabh Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 21 | <div class="col-xs-6"> |
Rushabh Mehta | dbb5154 | 2017-08-10 21:06:09 +0530 | [diff] [blame] | 22 | <span class="indicator {{ doc.indicator_color or ("blue" if doc.docstatus==1 else "darkgrey") }}"> |
Prateeksha Singh | 34aeefc | 2018-06-26 12:18:29 +0530 | [diff] [blame] | 23 | {{ _(doc.get("status")) or _(doc.get("indicator_title")) or _("Submitted") }} |
Rushabh Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 24 | </span> |
Saurabh | 0a0c787 | 2016-01-04 17:37:54 +0530 | [diff] [blame] | 25 | </div> |
Anand Doshi | e3bd78e | 2016-04-22 18:53:21 +0530 | [diff] [blame] | 26 | <div class="col-xs-6 text-muted text-right small"> |
| 27 | {{ frappe.utils.formatdate(doc.transaction_date, 'medium') }} |
Rushabh Mehta | dbb5154 | 2017-08-10 21:06:09 +0530 | [diff] [blame] | 28 | {% if doc.valid_till %} |
| 29 | <p> |
| 30 | {{ _("Valid Till") }}: {{ frappe.utils.formatdate(doc.valid_till, 'medium') }} |
| 31 | </p> |
| 32 | {% endif %} |
Rushabh Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 33 | </div> |
| 34 | </div> |
| 35 | |
Rushabh Mehta | dbb5154 | 2017-08-10 21:06:09 +0530 | [diff] [blame] | 36 | <p class='small' style='padding-top: 15px;'> |
| 37 | {% if doc.doctype == 'Supplier Quotation' %} |
| 38 | <b>{{ doc.supplier_name}}</b> |
| 39 | {% else %} |
| 40 | <b>{{ doc.customer_name}}</b> |
| 41 | {% endif %} |
| 42 | {% if doc.contact_display %} |
| 43 | <br> |
| 44 | {{ doc.contact_display }} |
| 45 | {% endif %} |
| 46 | </p> |
| 47 | |
Rushabh Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 48 | {% if doc._header %} |
| 49 | {{ doc._header }} |
| 50 | {% endif %} |
| 51 | |
| 52 | <div class="order-container"> |
| 53 | |
| 54 | <!-- items --> |
| 55 | <div class="order-item-table"> |
Anand Doshi | e3bd78e | 2016-04-22 18:53:21 +0530 | [diff] [blame] | 56 | <div class="row order-items order-item-header text-muted"> |
Rushabh Mehta | dbb5154 | 2017-08-10 21:06:09 +0530 | [diff] [blame] | 57 | <div class="col-sm-6 col-xs-6 h6 text-uppercase"> |
Rushabh Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 58 | {{ _("Item") }} |
| 59 | </div> |
Rushabh Mehta | dbb5154 | 2017-08-10 21:06:09 +0530 | [diff] [blame] | 60 | <div class="col-sm-3 col-xs-3 text-right h6 text-uppercase"> |
Rushabh Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 61 | {{ _("Quantity") }} |
| 62 | </div> |
Rushabh Mehta | dbb5154 | 2017-08-10 21:06:09 +0530 | [diff] [blame] | 63 | <div class="col-sm-3 col-xs-3 text-right h6 text-uppercase"> |
Rushabh Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 64 | {{ _("Amount") }} |
| 65 | </div> |
| 66 | </div> |
| 67 | {% for d in doc.items %} |
| 68 | <div class="row order-items"> |
Rushabh Mehta | dbb5154 | 2017-08-10 21:06:09 +0530 | [diff] [blame] | 69 | <div class="col-sm-6 col-xs-6"> |
Rushabh Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 70 | {{ item_name_and_description(d) }} |
| 71 | </div> |
Rushabh Mehta | dbb5154 | 2017-08-10 21:06:09 +0530 | [diff] [blame] | 72 | <div class="col-sm-3 col-xs-3 text-right"> |
Rushabh Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 73 | {{ d.qty }} |
Anand Doshi | 4b12740 | 2015-11-26 18:22:03 +0530 | [diff] [blame] | 74 | {% if d.delivered_qty is defined and d.delivered_qty != None %} |
Rushabh Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 75 | <p class="text-muted small">{{ |
| 76 | _("Delivered: {0}").format(d.delivered_qty) }}</p> |
| 77 | {% endif %} |
| 78 | </div> |
Rushabh Mehta | dbb5154 | 2017-08-10 21:06:09 +0530 | [diff] [blame] | 79 | <div class="col-sm-3 col-xs-3 text-right"> |
Saurabh | 276d3e6 | 2015-12-31 13:26:36 +0530 | [diff] [blame] | 80 | {{ d.get_formatted("amount") }} |
Rushabh Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 81 | <p class="text-muted small">{{ |
Rushabh Mehta | 4b9238a | 2016-05-12 15:22:59 +0530 | [diff] [blame] | 82 | _("@ {0}").format(d.get_formatted("rate")) }}</p> |
Rushabh Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 83 | </div> |
| 84 | </div> |
| 85 | {% endfor %} |
| 86 | </div> |
| 87 | |
| 88 | <!-- taxes --> |
Anand Doshi | e3bd78e | 2016-04-22 18:53:21 +0530 | [diff] [blame] | 89 | <div class="order-taxes row"> |
| 90 | <div class="col-sm-6"><!-- empty --></div> |
| 91 | <div class="col-sm-6 text-right"> |
Rushabh Mehta | 3d76686 | 2015-09-16 18:52:52 +0530 | [diff] [blame] | 92 | {% include "erpnext/templates/includes/order/order_taxes.html" %} |
Rushabh Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 93 | </div> |
| 94 | </div> |
| 95 | </div> |
| 96 | |
Saurabh | 276d3e6 | 2015-12-31 13:26:36 +0530 | [diff] [blame] | 97 | <div class="cart-taxes row small"> |
Rushabh Mehta | dbb5154 | 2017-08-10 21:06:09 +0530 | [diff] [blame] | 98 | <div class="col-sm-6"><!-- empty --></div> |
| 99 | <div class="col-sm-6"> |
Saurabh | 883cc04 | 2016-01-21 15:43:07 +0530 | [diff] [blame] | 100 | {% if enabled_checkout %} |
| 101 | {% if (doc.doctype=="Sales Order" and doc.per_billed <= 0) |
| 102 | or (doc.doctype=="Sales Invoice" and doc.outstanding_amount > 0) %} |
| 103 | <div class="page-header-actions-block" data-html-block="header-actions"> |
| 104 | <p> |
Saurabh | 3a4b6c2 | 2017-08-08 11:29:11 +0530 | [diff] [blame] | 105 | <a href="/api/method/erpnext.accounts.doctype.payment_request.payment_request.make_payment_request?dn={{ doc.name }}&dt={{ doc.doctype }}&submit_doc=1&order_type=Shopping Cart" |
Britlog | 4c7709e | 2017-07-28 15:24:22 +0200 | [diff] [blame] | 106 | class="btn btn-primary btn-sm">{{ _("Pay") }} {{ doc.get_formatted("grand_total") }} </a> |
Saurabh | 883cc04 | 2016-01-21 15:43:07 +0530 | [diff] [blame] | 107 | </p> |
Saurabh | 0a0c787 | 2016-01-04 17:37:54 +0530 | [diff] [blame] | 108 | </div> |
Saurabh | 883cc04 | 2016-01-21 15:43:07 +0530 | [diff] [blame] | 109 | {% endif %} |
Saurabh | 276d3e6 | 2015-12-31 13:26:36 +0530 | [diff] [blame] | 110 | {% endif %} |
Saurabh | 0a0c787 | 2016-01-04 17:37:54 +0530 | [diff] [blame] | 111 | </div> |
Rushabh Mehta | dbb5154 | 2017-08-10 21:06:09 +0530 | [diff] [blame] | 112 | |
Charles-Henri Decultot | 2de1cd3 | 2017-05-19 12:34:10 +0200 | [diff] [blame] | 113 | {% if attachments %} |
| 114 | <div class="order-item-table"> |
| 115 | <div class="row order-items order-item-header text-muted"> |
| 116 | <div class="col-sm-12 h6 text-uppercase"> |
| 117 | {{ _("Attachments") }} |
| 118 | </div> |
| 119 | </div> |
| 120 | <div class="row order-items"> |
| 121 | <div class="col-sm-12"> |
| 122 | {% for attachment in attachments %} |
| 123 | <p class="small"> |
| 124 | <a href="{{ attachment.file_url }}" target="blank"> {{ attachment.file_name }} </a> |
| 125 | </p> |
| 126 | {% endfor %} |
| 127 | </div> |
| 128 | </div> |
Saurabh | 276d3e6 | 2015-12-31 13:26:36 +0530 | [diff] [blame] | 129 | </div> |
Charles-Henri Decultot | 2de1cd3 | 2017-05-19 12:34:10 +0200 | [diff] [blame] | 130 | {% endif %} |
| 131 | </div> |
Rushabh Mehta | dbb5154 | 2017-08-10 21:06:09 +0530 | [diff] [blame] | 132 | {% if doc.terms %} |
| 133 | <div class="terms-and-condition text-muted small"> |
| 134 | <hr><p>{{ doc.terms }}</p> |
| 135 | </div> |
| 136 | {% endif %} |
Rushabh Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 137 | {% endblock %} |