2016-01-01 11:53:12 +00:00
|
|
|
{% extends "templates/web.html" %}
|
|
|
|
|
2015-09-11 13:19:59 +00:00
|
|
|
{% block header %}
|
2016-01-04 12:07:54 +00:00
|
|
|
<h1>
|
|
|
|
{{ doc.name }}
|
|
|
|
</h1>
|
2015-09-11 13:19:59 +00:00
|
|
|
<!-- <h6 class="text-muted">{{ doc._title or doc.doctype }}</h6> -->
|
|
|
|
{% endblock %}
|
|
|
|
|
2016-01-01 11:53:12 +00:00
|
|
|
{% block style %}
|
|
|
|
<style>
|
|
|
|
{% include "templates/includes/order/order.css" %}
|
|
|
|
</style>
|
|
|
|
{% endblock %}
|
2015-09-11 13:19:59 +00:00
|
|
|
|
2016-01-01 11:53:12 +00:00
|
|
|
{% block page_content %}
|
2015-09-11 13:19:59 +00:00
|
|
|
|
2015-09-16 13:22:52 +00:00
|
|
|
{% from "erpnext/templates/includes/order/order_macros.html" import item_name_and_description %}
|
2015-09-11 13:19:59 +00:00
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-xs-6">
|
|
|
|
<span class="indicator {{ doc.indicator_color or "darkgrey" }}">
|
|
|
|
{{ doc.indicator_title or doc.status or "Submitted" }}
|
|
|
|
</span>
|
2016-01-04 12:07:54 +00:00
|
|
|
{% if doc.base_net_total == doc.advance_paid and payment_ref%}
|
|
|
|
<div>
|
|
|
|
<span class="indicator green" data-toggle="tooltip" title=" Reference Id: {{payment_ref}}"> Paid</span>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
</div>
|
2015-09-11 13:19:59 +00:00
|
|
|
<div class="col-xs-6 text-muted text-right h6">
|
|
|
|
{{ doc.get_formatted("transaction_date") }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{% if doc._header %}
|
|
|
|
{{ doc._header }}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
<div class="order-container">
|
|
|
|
|
|
|
|
<!-- items -->
|
|
|
|
<div class="order-item-table">
|
|
|
|
<div class="row order-items order-item-header">
|
|
|
|
<div class="col-sm-8 col-xs-6 h6">
|
|
|
|
{{ _("Item") }}
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-2 col-xs-3 text-right h6">
|
|
|
|
{{ _("Quantity") }}
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-2 col-xs-3 text-right h6">
|
|
|
|
{{ _("Amount") }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% for d in doc.items %}
|
|
|
|
<div class="row order-items">
|
|
|
|
<div class="col-sm-8 col-xs-6">
|
|
|
|
{{ item_name_and_description(d) }}
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-2 col-xs-3 text-right">
|
|
|
|
{{ d.qty }}
|
2015-11-26 12:52:03 +00:00
|
|
|
{% if d.delivered_qty is defined and d.delivered_qty != None %}
|
2015-09-11 13:19:59 +00:00
|
|
|
<p class="text-muted small">{{
|
|
|
|
_("Delivered: {0}").format(d.delivered_qty) }}</p>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-2 col-xs-3 text-right">
|
2015-12-31 07:56:36 +00:00
|
|
|
{{ d.get_formatted("amount") }}
|
2015-11-26 12:52:03 +00:00
|
|
|
{# output of get_formatted("rate") is unicode, to replace unicode use _("text {0}").decode("utf8").format(val) #}
|
2015-09-11 13:19:59 +00:00
|
|
|
<p class="text-muted small">{{
|
2015-10-14 08:10:45 +00:00
|
|
|
_("Rate: {0}").decode("utf8").format(d.get_formatted("rate")) }}</p>
|
2015-09-11 13:19:59 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- taxes -->
|
|
|
|
<div class="order-taxes row small">
|
|
|
|
<div class="col-sm-8"><!-- empty --></div>
|
|
|
|
<div class="col-sm-4">
|
2015-09-16 13:22:52 +00:00
|
|
|
{% include "erpnext/templates/includes/order/order_taxes.html" %}
|
2015-09-11 13:19:59 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2015-12-31 07:56:36 +00:00
|
|
|
<div class="cart-taxes row small">
|
|
|
|
<div class="col-sm-8"><!-- empty --></div>
|
|
|
|
<div class="col-sm-4">
|
|
|
|
{% if doc.per_billed <= 0 %}
|
|
|
|
<div class="page-header-actions-block" data-html-block="header-actions">
|
|
|
|
<p>
|
|
|
|
<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"
|
|
|
|
class="btn btn-primary btn-sm">Pay {{ doc.get_formatted("grand_total") }} </a>
|
|
|
|
</p>
|
2016-01-04 12:07:54 +00:00
|
|
|
</div>
|
2015-12-31 07:56:36 +00:00
|
|
|
{% endif %}
|
2016-01-04 12:07:54 +00:00
|
|
|
</div>
|
2015-12-31 07:56:36 +00:00
|
|
|
</div>
|
|
|
|
|
2015-09-11 13:19:59 +00:00
|
|
|
{% endblock %}
|