blob: 3a6d2254fb8a41a3731ec72df440d583b1c8648f [file] [log] [blame]
Anand Doshi1947b172016-03-23 12:12:38 +05301{% extends "templates/web.html" %}
Anand Doshie3bd78e2016-04-22 18:53:21 +05302{% from "erpnext/templates/includes/order/order_macros.html" import item_name_and_description %}
Rushabh Mehta156ce602015-09-11 18:49:59 +05303
Saurabhdf2783d2016-01-06 15:21:21 +05304{% block breadcrumbs %}
5 {% include "templates/includes/breadcrumbs.html" %}
6{% endblock %}
7
Rushabh Mehtaa3340622016-06-23 18:25:50 +05308{% block title %}{{ doc.name }}{% endblock %}
9
Rushabh Mehtadbb51542017-08-10 21:06:09 +053010{% 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 Mehta156ce602015-09-11 18:49:59 +053017
Rushabh Mehta51008f22016-01-01 17:23:12 +053018{% block page_content %}
Rushabh Mehta156ce602015-09-11 18:49:59 +053019
Anand Doshie3bd78e2016-04-22 18:53:21 +053020<div class="row transaction-subheading">
Rushabh Mehta156ce602015-09-11 18:49:59 +053021 <div class="col-xs-6">
Rushabh Mehtadbb51542017-08-10 21:06:09 +053022 <span class="indicator {{ doc.indicator_color or ("blue" if doc.docstatus==1 else "darkgrey") }}">
Charles-Henri Decultot8a052cb2017-12-04 06:47:05 +010023 {{ _(doc.indicator_title) or _(doc.status) or _("Submitted") }}
Rushabh Mehta156ce602015-09-11 18:49:59 +053024 </span>
Saurabh0a0c7872016-01-04 17:37:54 +053025 </div>
Anand Doshie3bd78e2016-04-22 18:53:21 +053026 <div class="col-xs-6 text-muted text-right small">
27 {{ frappe.utils.formatdate(doc.transaction_date, 'medium') }}
Rushabh Mehtadbb51542017-08-10 21:06:09 +053028 {% if doc.valid_till %}
29 <p>
30 {{ _("Valid Till") }}: {{ frappe.utils.formatdate(doc.valid_till, 'medium') }}
31 </p>
32 {% endif %}
Rushabh Mehta156ce602015-09-11 18:49:59 +053033 </div>
34</div>
35
Rushabh Mehtadbb51542017-08-10 21:06:09 +053036<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 Mehta156ce602015-09-11 18:49:59 +053048{% if doc._header %}
49{{ doc._header }}
50{% endif %}
51
52<div class="order-container">
53
54 <!-- items -->
55 <div class="order-item-table">
Anand Doshie3bd78e2016-04-22 18:53:21 +053056 <div class="row order-items order-item-header text-muted">
Rushabh Mehtadbb51542017-08-10 21:06:09 +053057 <div class="col-sm-6 col-xs-6 h6 text-uppercase">
Rushabh Mehta156ce602015-09-11 18:49:59 +053058 {{ _("Item") }}
59 </div>
Rushabh Mehtadbb51542017-08-10 21:06:09 +053060 <div class="col-sm-3 col-xs-3 text-right h6 text-uppercase">
Rushabh Mehta156ce602015-09-11 18:49:59 +053061 {{ _("Quantity") }}
62 </div>
Rushabh Mehtadbb51542017-08-10 21:06:09 +053063 <div class="col-sm-3 col-xs-3 text-right h6 text-uppercase">
Rushabh Mehta156ce602015-09-11 18:49:59 +053064 {{ _("Amount") }}
65 </div>
66 </div>
67 {% for d in doc.items %}
68 <div class="row order-items">
Rushabh Mehtadbb51542017-08-10 21:06:09 +053069 <div class="col-sm-6 col-xs-6">
Rushabh Mehta156ce602015-09-11 18:49:59 +053070 {{ item_name_and_description(d) }}
71 </div>
Rushabh Mehtadbb51542017-08-10 21:06:09 +053072 <div class="col-sm-3 col-xs-3 text-right">
Rushabh Mehta156ce602015-09-11 18:49:59 +053073 {{ d.qty }}
Anand Doshi4b127402015-11-26 18:22:03 +053074 {% if d.delivered_qty is defined and d.delivered_qty != None %}
Rushabh Mehta156ce602015-09-11 18:49:59 +053075 <p class="text-muted small">{{
76 _("Delivered: {0}").format(d.delivered_qty) }}</p>
77 {% endif %}
78 </div>
Rushabh Mehtadbb51542017-08-10 21:06:09 +053079 <div class="col-sm-3 col-xs-3 text-right">
Saurabh276d3e62015-12-31 13:26:36 +053080 {{ d.get_formatted("amount") }}
Rushabh Mehta156ce602015-09-11 18:49:59 +053081 <p class="text-muted small">{{
Rushabh Mehta4b9238a2016-05-12 15:22:59 +053082 _("@ {0}").format(d.get_formatted("rate")) }}</p>
Rushabh Mehta156ce602015-09-11 18:49:59 +053083 </div>
84 </div>
85 {% endfor %}
86 </div>
87
88 <!-- taxes -->
Anand Doshie3bd78e2016-04-22 18:53:21 +053089 <div class="order-taxes row">
90 <div class="col-sm-6"><!-- empty --></div>
91 <div class="col-sm-6 text-right">
Rushabh Mehta3d766862015-09-16 18:52:52 +053092 {% include "erpnext/templates/includes/order/order_taxes.html" %}
Rushabh Mehta156ce602015-09-11 18:49:59 +053093 </div>
94 </div>
95</div>
96
Saurabh276d3e62015-12-31 13:26:36 +053097<div class="cart-taxes row small">
Rushabh Mehtadbb51542017-08-10 21:06:09 +053098 <div class="col-sm-6"><!-- empty --></div>
99 <div class="col-sm-6">
Saurabh883cc042016-01-21 15:43:07 +0530100 {% 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>
Saurabh3a4b6c22017-08-08 11:29:11 +0530105 <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"
Britlog4c7709e2017-07-28 15:24:22 +0200106 class="btn btn-primary btn-sm">{{ _("Pay") }} {{ doc.get_formatted("grand_total") }} </a>
Saurabh883cc042016-01-21 15:43:07 +0530107 </p>
Saurabh0a0c7872016-01-04 17:37:54 +0530108 </div>
Saurabh883cc042016-01-21 15:43:07 +0530109 {% endif %}
Saurabh276d3e62015-12-31 13:26:36 +0530110 {% endif %}
Saurabh0a0c7872016-01-04 17:37:54 +0530111 </div>
Rushabh Mehtadbb51542017-08-10 21:06:09 +0530112
Charles-Henri Decultot2de1cd32017-05-19 12:34:10 +0200113{% 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>
Saurabh276d3e62015-12-31 13:26:36 +0530129</div>
Charles-Henri Decultot2de1cd32017-05-19 12:34:10 +0200130{% endif %}
131</div>
Rushabh Mehtadbb51542017-08-10 21:06:09 +0530132{% if doc.terms %}
133<div class="terms-and-condition text-muted small">
134 <hr><p>{{ doc.terms }}</p>
135</div>
136{% endif %}
Rushabh Mehta156ce602015-09-11 18:49:59 +0530137{% endblock %}