2013-09-10 08:16:15 +00:00
|
|
|
{% extends base_template %}
|
2013-03-22 07:15:44 +00:00
|
|
|
|
|
|
|
{% set title=doc.name %}
|
|
|
|
|
|
|
|
{% block content %}
|
2013-11-21 09:25:45 +00:00
|
|
|
<div class="container content">
|
2013-03-22 07:15:44 +00:00
|
|
|
<ul class="breadcrumb">
|
2013-07-02 06:10:16 +00:00
|
|
|
<li><a href="index">Home</a></li>
|
2013-09-04 11:16:08 +00:00
|
|
|
<li><a href="{{ parent_link }}">{{ parent_title }}</a></li>
|
2013-08-29 12:16:40 +00:00
|
|
|
<li class="active"><i class="icon-file icon-fixed-width"></i> {{ doc.name }}</li>
|
2013-03-22 07:15:44 +00:00
|
|
|
</ul>
|
2013-08-29 12:16:40 +00:00
|
|
|
<h3><i class="icon-file icon-fixed-width"></i> {{ doc.name }}</h3>
|
2013-09-05 06:49:00 +00:00
|
|
|
{% if doc.name == "Not Allowed" -%}
|
|
|
|
<script>ask_to_login();</script>
|
|
|
|
{% else %}
|
2013-03-22 07:15:44 +00:00
|
|
|
<hr>
|
2013-09-04 11:16:08 +00:00
|
|
|
<div>
|
2013-03-22 07:15:44 +00:00
|
|
|
<div class="row">
|
2013-09-04 11:16:08 +00:00
|
|
|
<div class="col-xs-6">
|
2013-09-12 09:55:38 +00:00
|
|
|
{% block status -%}{%- endblock %}
|
2013-03-22 07:15:44 +00:00
|
|
|
</div>
|
2013-09-04 11:16:08 +00:00
|
|
|
<div class="col-xs-6">
|
|
|
|
<span class="pull-right">{{ utils.formatdate(doc.posting_date or doc.transaction_date) }}</span>
|
2013-03-22 07:15:44 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<br>
|
|
|
|
<div class="row">
|
2013-08-21 12:18:08 +00:00
|
|
|
<div class="col-md-12">
|
2013-03-22 07:15:44 +00:00
|
|
|
<table class="table table-bordered">
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<th>Sr</th>
|
|
|
|
<th>Item Name</th>
|
|
|
|
<th>Description</th>
|
|
|
|
<th>Qty</th>
|
|
|
|
<th>UoM</th>
|
|
|
|
<th>Basic Rate</th>
|
|
|
|
<th>Amount</th>
|
|
|
|
</tr>
|
2013-09-04 11:16:08 +00:00
|
|
|
{%- for row in doclist.get({"doctype": doc.doctype + " Item"}) %}
|
2013-03-22 07:15:44 +00:00
|
|
|
<tr>
|
|
|
|
<td style="width: 3%;">{{ row.idx }}</td>
|
|
|
|
<td style="width: 20%;">{{ row.item_name }}</td>
|
|
|
|
<td style="width: 37%;">{{ row.description }}</td>
|
|
|
|
<td style="width: 5%; text-align: right;">{{ row.qty }}</td>
|
|
|
|
<td style="width: 5%;">{{ row.stock_uom }}</td>
|
|
|
|
<td style="width: 15%; text-align: right;">{{ utils.fmt_money(row.export_rate, currency=doc.currency) }}</td>
|
|
|
|
<td style="width: 15%; text-align: right;">{{ utils.fmt_money(row.export_amount, currency=doc.currency) }}</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor -%}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
2013-08-21 12:18:08 +00:00
|
|
|
<div class="col-md-6"></div>
|
|
|
|
<div class="col-md-6">
|
2013-03-22 07:15:44 +00:00
|
|
|
<table cellspacing=0 width=100%>
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td>Net Total</td>
|
|
|
|
<td width=40% style="text-align: right;">{{
|
|
|
|
utils.fmt_money(doc.net_total/doc.conversion_rate, currency=doc.currency)
|
|
|
|
}}</td>
|
|
|
|
</tr>
|
|
|
|
{%- for charge in doclist.get({"doctype":"Sales Taxes and Charges"}) -%}
|
|
|
|
{%- if not charge.included_in_print_rate -%}
|
|
|
|
<tr>
|
|
|
|
<td>{{ charge.description }}</td>
|
|
|
|
<td style="text-align: right;">{{ utils.fmt_money(charge.tax_amount / doc.conversion_rate, currency=doc.currency) }}</td>
|
|
|
|
</tr>
|
|
|
|
{%- endif -%}
|
|
|
|
{%- endfor -%}
|
|
|
|
<tr>
|
|
|
|
<td>Grand Total</td>
|
|
|
|
<td style="text-align: right;">{{ utils.fmt_money(doc.grand_total_export, currency=doc.currency) }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr style='font-weight: bold'>
|
|
|
|
<td>Rounded Total</td>
|
|
|
|
<td style="text-align: right;">{{ utils.fmt_money(doc.rounded_total_export, currency=doc.currency) }}</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2013-09-05 06:49:00 +00:00
|
|
|
{%- endif %}
|
2013-03-22 07:15:44 +00:00
|
|
|
</div>
|
|
|
|
{% endblock %}
|