blob: 98f743139fc96d73abecd343cf1b87f5ce1e5206 [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 %}
Kanchan Chauhan239b3512016-05-02 11:43:44 +05307{% block title %}
8{{ doc.name }}
9{% endblock %}
Saurabhdf2783d2016-01-06 15:21:21 +053010
Anand Doshie3bd78e2016-04-22 18:53:21 +053011{% block header %}
12<h1>{{ doc.name }}</h1>
Rushabh Mehta51008f22016-01-01 17:23:12 +053013{% endblock %}
Rushabh Mehta156ce602015-09-11 18:49:59 +053014
Rushabh Mehta51008f22016-01-01 17:23:12 +053015{% block page_content %}
Rushabh Mehta156ce602015-09-11 18:49:59 +053016
Anand Doshie3bd78e2016-04-22 18:53:21 +053017<div class="row transaction-subheading">
Rushabh Mehta156ce602015-09-11 18:49:59 +053018 <div class="col-xs-6">
19 <span class="indicator {{ doc.indicator_color or "darkgrey" }}">
20 {{ doc.indicator_title or doc.status or "Submitted" }}
21 </span>
Saurabh0a0c7872016-01-04 17:37:54 +053022 </div>
Anand Doshie3bd78e2016-04-22 18:53:21 +053023 <div class="col-xs-6 text-muted text-right small">
24 {{ frappe.utils.formatdate(doc.transaction_date, 'medium') }}
Rushabh Mehta156ce602015-09-11 18:49:59 +053025 </div>
26</div>
27
28{% if doc._header %}
29{{ doc._header }}
30{% endif %}
31
32<div class="order-container">
33
34 <!-- items -->
35 <div class="order-item-table">
Anand Doshie3bd78e2016-04-22 18:53:21 +053036 <div class="row order-items order-item-header text-muted">
37 <div class="col-sm-8 col-xs-6 h6 text-uppercase">
Rushabh Mehta156ce602015-09-11 18:49:59 +053038 {{ _("Item") }}
39 </div>
Anand Doshie3bd78e2016-04-22 18:53:21 +053040 <div class="col-sm-2 col-xs-3 text-right h6 text-uppercase">
Rushabh Mehta156ce602015-09-11 18:49:59 +053041 {{ _("Quantity") }}
42 </div>
Anand Doshie3bd78e2016-04-22 18:53:21 +053043 <div class="col-sm-2 col-xs-3 text-right h6 text-uppercase">
Rushabh Mehta156ce602015-09-11 18:49:59 +053044 {{ _("Amount") }}
45 </div>
46 </div>
47 {% for d in doc.items %}
48 <div class="row order-items">
49 <div class="col-sm-8 col-xs-6">
50 {{ item_name_and_description(d) }}
51 </div>
52 <div class="col-sm-2 col-xs-3 text-right">
53 {{ d.qty }}
Anand Doshi4b127402015-11-26 18:22:03 +053054 {% if d.delivered_qty is defined and d.delivered_qty != None %}
Rushabh Mehta156ce602015-09-11 18:49:59 +053055 <p class="text-muted small">{{
56 _("Delivered: {0}").format(d.delivered_qty) }}</p>
57 {% endif %}
58 </div>
59 <div class="col-sm-2 col-xs-3 text-right">
Saurabh276d3e62015-12-31 13:26:36 +053060 {{ d.get_formatted("amount") }}
Rushabh Mehta156ce602015-09-11 18:49:59 +053061 <p class="text-muted small">{{
Anand Doshi0bcd9ef2016-01-18 12:30:31 +053062 _("Rate: {0}").format(d.get_formatted("rate")) }}</p>
Rushabh Mehta156ce602015-09-11 18:49:59 +053063 </div>
64 </div>
65 {% endfor %}
66 </div>
67
68 <!-- taxes -->
Anand Doshie3bd78e2016-04-22 18:53:21 +053069 <div class="order-taxes row">
70 <div class="col-sm-6"><!-- empty --></div>
71 <div class="col-sm-6 text-right">
Rushabh Mehta3d766862015-09-16 18:52:52 +053072 {% include "erpnext/templates/includes/order/order_taxes.html" %}
Rushabh Mehta156ce602015-09-11 18:49:59 +053073 </div>
74 </div>
75</div>
76
Saurabh276d3e62015-12-31 13:26:36 +053077<div class="cart-taxes row small">
78 <div class="col-sm-8"><!-- empty --></div>
79 <div class="col-sm-4">
Saurabh883cc042016-01-21 15:43:07 +053080 {% if enabled_checkout %}
81 {% if (doc.doctype=="Sales Order" and doc.per_billed <= 0)
82 or (doc.doctype=="Sales Invoice" and doc.outstanding_amount > 0) %}
83 <div class="page-header-actions-block" data-html-block="header-actions">
84 <p>
85 <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"
86 class="btn btn-primary btn-sm">Pay {{ doc.get_formatted("grand_total") }} </a>
87 </p>
Saurabh0a0c7872016-01-04 17:37:54 +053088 </div>
Saurabh883cc042016-01-21 15:43:07 +053089 {% endif %}
Saurabh276d3e62015-12-31 13:26:36 +053090 {% endif %}
Saurabh0a0c7872016-01-04 17:37:54 +053091 </div>
Saurabh276d3e62015-12-31 13:26:36 +053092</div>
93
Rushabh Mehta156ce602015-09-11 18:49:59 +053094{% endblock %}