blob: 63239950030671b5b0715ebd3e2150e6ff5c9e57 [file] [log] [blame]
Rushabh Mehta3daa49a2014-10-21 16:16:30 +05301<div class="sale-content">
2 <ul class="breadcrumb">
3 <li><a href="index">Home</a></li>
4 <li><a href="{{ parent_link }}">{{ parent_title }}</a></li>
5 <li class="active"><i class="icon-file icon-fixed-width"></i> {{ doc.name }}</li>
6 </ul>
7 <h3><i class="icon-file icon-fixed-width"></i> {{ doc.name }}</h3>
8 {% if doc.name == _("Not Allowed") -%}
9 <script>ask_to_login();</script>
10 {% else %}
11 <hr>
12 <div>
13 <div class="row">
14 <div class="col-xs-6">
15 {% if doc.status -%}{{ doc.status }}{%- endif %}
16 </div>
17 <div class="col-xs-6">
18 <span class="pull-right">{{ frappe.utils.formatdate(doc.posting_date or doc.transaction_date) }}</span>
19 </div>
20 </div>
21 <br>
22 <div class="row">
23 <div class="col-md-12">
24 <table class="table table-bordered">
25 <tbody>
26 <tr>
27 <th>Sr</th>
28 <th>Item Name</th>
29 <th>Description</th>
30 <th>Qty</th>
31 <th>UoM</th>
32 <th>Basic Rate</th>
33 <th>Amount</th>
34 </tr>
35 {%- for row in doc.get({"doctype": doc.doctype + " Item"}) %}
36 <tr>
37 <td style="width: 3%;">{{ row.idx }}</td>
38 <td style="width: 20%;">{{ row.item_name }}</td>
39 <td style="width: 37%;">{{ row.description }}</td>
40 <td style="width: 5%; text-align: right;">{{ row.qty }}</td>
41 <td style="width: 5%;">{{ row.stock_uom }}</td>
42 <td style="width: 15%; text-align: right;">{{ frappe.utils.fmt_money(row.rate, currency=doc.currency) }}</td>
43 <td style="width: 15%; text-align: right;">{{ frappe.utils.fmt_money(row.amount, currency=doc.currency) }}</td>
44 </tr>
45 {% endfor -%}
46 </tbody>
47 </table>
48 </div>
49 </div>
50 <div class="row">
51 <div class="col-md-6"></div>
52 <div class="col-md-6">
53 <table cellspacing=0 width=100%>
54 <tbody>
55 <tr>
56 <td>Net Total</td>
57 <td width=40% style="text-align: right;">{{
Nabin Hait5690be12015-02-12 16:09:11 +053058 frappe.utils.fmt_money(doc.base_net_total/doc.conversion_rate, currency=doc.currency)
Rushabh Mehta3daa49a2014-10-21 16:16:30 +053059 }}</td>
60 </tr>
61 {%- for charge in doc.get({"doctype":"Sales Taxes and Charges"}) -%}
62 {%- if not charge.included_in_print_rate -%}
63 <tr>
64 <td>{{ charge.description }}</td>
65 <td style="text-align: right;">{{ frappe.utils.fmt_money(charge.tax_amount / doc.conversion_rate, currency=doc.currency) }}</td>
66 </tr>
67 {%- endif -%}
68 {%- endfor -%}
69 <tr>
70 <td>Grand Total</td>
Nabin Hait5690be12015-02-12 16:09:11 +053071 <td style="text-align: right;">{{ frappe.utils.fmt_money(doc.grand_total, currency=doc.currency) }}</td>
Rushabh Mehta3daa49a2014-10-21 16:16:30 +053072 </tr>
73 <tr style='font-weight: bold'>
74 <td>Rounded Total</td>
Nabin Hait5690be12015-02-12 16:09:11 +053075 <td style="text-align: right;">{{ frappe.utils.fmt_money(doc.rounded_total, currency=doc.currency) }}</td>
Rushabh Mehta3daa49a2014-10-21 16:16:30 +053076 </tr>
77 </tbody>
78 </table>
79 </div>
80 </div>
81 </div>
82 {%- endif %}
83</div>
84
85<!-- no-sidebar -->