blob: 3252eb9eb53f18dc90a8f9f4e4d69f830b4ca5f4 [file] [log] [blame]
Rushabh Mehta51008f22016-01-01 17:23:12 +05301{% extends "templates/web.html" %}
2
Rushabh Mehta156ce602015-09-11 18:49:59 +05303{% block header %}
Saurabhdf2783d2016-01-06 15:21:21 +05304<h1>{{ doc.name }}</h1>
Rushabh Mehta156ce602015-09-11 18:49:59 +05305<!-- <h6 class="text-muted">{{ doc._title or doc.doctype }}</h6> -->
6{% endblock %}
7
Saurabhdf2783d2016-01-06 15:21:21 +05308{% block breadcrumbs %}
9 {% include "templates/includes/breadcrumbs.html" %}
10{% endblock %}
11
Rushabh Mehta51008f22016-01-01 17:23:12 +053012{% block style %}
13<style>
14 {% include "templates/includes/order/order.css" %}
15</style>
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
Rushabh Mehta3d766862015-09-16 18:52:52 +053020{% from "erpnext/templates/includes/order/order_macros.html" import item_name_and_description %}
Rushabh Mehta156ce602015-09-11 18:49:59 +053021
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>
Saurabh0a0c7872016-01-04 17:37:54 +053027 </div>
Rushabh Mehta156ce602015-09-11 18:49:59 +053028 <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 Doshi4b127402015-11-26 18:22:03 +053059 {% if d.delivered_qty is defined and d.delivered_qty != None %}
Rushabh Mehta156ce602015-09-11 18:49:59 +053060 <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">
Saurabh276d3e62015-12-31 13:26:36 +053065 {{ d.get_formatted("amount") }}
Rushabh Mehta156ce602015-09-11 18:49:59 +053066 <p class="text-muted small">{{
Anand Doshi0bcd9ef2016-01-18 12:30:31 +053067 _("Rate: {0}").format(d.get_formatted("rate")) }}</p>
Rushabh Mehta156ce602015-09-11 18:49:59 +053068 </div>
69 </div>
70 {% endfor %}
71 </div>
72
73 <!-- taxes -->
74 <div class="order-taxes row small">
75 <div class="col-sm-8"><!-- empty --></div>
76 <div class="col-sm-4">
Rushabh Mehta3d766862015-09-16 18:52:52 +053077 {% include "erpnext/templates/includes/order/order_taxes.html" %}
Rushabh Mehta156ce602015-09-11 18:49:59 +053078 </div>
79 </div>
80</div>
81
Saurabh276d3e62015-12-31 13:26:36 +053082<div class="cart-taxes row small">
83 <div class="col-sm-8"><!-- empty --></div>
84 <div class="col-sm-4">
Saurabh883cc042016-01-21 15:43:07 +053085 {% if enabled_checkout %}
86 {% if (doc.doctype=="Sales Order" and doc.per_billed <= 0)
87 or (doc.doctype=="Sales Invoice" and doc.outstanding_amount > 0) %}
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>
Saurabh0a0c7872016-01-04 17:37:54 +053093 </div>
Saurabh883cc042016-01-21 15:43:07 +053094 {% endif %}
Saurabh276d3e62015-12-31 13:26:36 +053095 {% endif %}
Saurabh0a0c7872016-01-04 17:37:54 +053096 </div>
Saurabh276d3e62015-12-31 13:26:36 +053097</div>
98
Rushabh Mehta156ce602015-09-11 18:49:59 +053099{% endblock %}