2016-03-23 06:42:38 +00:00
|
|
|
{% extends "templates/web.html" %}
|
2016-04-22 13:23:21 +00:00
|
|
|
{% from "erpnext/templates/includes/order/order_macros.html" import item_name_and_description %}
|
2015-09-11 13:19:59 +00:00
|
|
|
|
2016-01-06 09:51:21 +00:00
|
|
|
{% block breadcrumbs %}
|
|
|
|
{% include "templates/includes/breadcrumbs.html" %}
|
|
|
|
{% endblock %}
|
|
|
|
|
2016-06-23 12:55:50 +00:00
|
|
|
{% block title %}{{ doc.name }}{% endblock %}
|
|
|
|
|
2017-08-10 15:36:09 +00:00
|
|
|
{% block header %}
|
|
|
|
<h1>{{ doc.name }}</h1>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block header_actions %}
|
|
|
|
<a class='btn btn-xs btn-default' href='/printview?doctype={{ doc.doctype}}&name={{ doc.name }}&format={{ print_format }}' target="_blank" rel="noopener noreferrer">{{ _("Print") }}</a>
|
|
|
|
{% 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
|
|
|
|
2016-04-22 13:23:21 +00:00
|
|
|
<div class="row transaction-subheading">
|
2015-09-11 13:19:59 +00:00
|
|
|
<div class="col-xs-6">
|
2017-08-10 15:36:09 +00:00
|
|
|
<span class="indicator {{ doc.indicator_color or ("blue" if doc.docstatus==1 else "darkgrey") }}">
|
2017-12-04 05:47:05 +00:00
|
|
|
{{ _(doc.indicator_title) or _(doc.status) or _("Submitted") }}
|
2015-09-11 13:19:59 +00:00
|
|
|
</span>
|
2016-01-04 12:07:54 +00:00
|
|
|
</div>
|
2016-04-22 13:23:21 +00:00
|
|
|
<div class="col-xs-6 text-muted text-right small">
|
|
|
|
{{ frappe.utils.formatdate(doc.transaction_date, 'medium') }}
|
2017-08-10 15:36:09 +00:00
|
|
|
{% if doc.valid_till %}
|
|
|
|
<p>
|
|
|
|
{{ _("Valid Till") }}: {{ frappe.utils.formatdate(doc.valid_till, 'medium') }}
|
|
|
|
</p>
|
|
|
|
{% endif %}
|
2015-09-11 13:19:59 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2017-08-10 15:36:09 +00:00
|
|
|
<p class='small' style='padding-top: 15px;'>
|
|
|
|
{% if doc.doctype == 'Supplier Quotation' %}
|
|
|
|
<b>{{ doc.supplier_name}}</b>
|
|
|
|
{% else %}
|
|
|
|
<b>{{ doc.customer_name}}</b>
|
|
|
|
{% endif %}
|
|
|
|
{% if doc.contact_display %}
|
|
|
|
<br>
|
|
|
|
{{ doc.contact_display }}
|
|
|
|
{% endif %}
|
|
|
|
</p>
|
|
|
|
|
2015-09-11 13:19:59 +00:00
|
|
|
{% if doc._header %}
|
|
|
|
{{ doc._header }}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
<div class="order-container">
|
|
|
|
|
|
|
|
<!-- items -->
|
|
|
|
<div class="order-item-table">
|
2016-04-22 13:23:21 +00:00
|
|
|
<div class="row order-items order-item-header text-muted">
|
2017-08-10 15:36:09 +00:00
|
|
|
<div class="col-sm-6 col-xs-6 h6 text-uppercase">
|
2015-09-11 13:19:59 +00:00
|
|
|
{{ _("Item") }}
|
|
|
|
</div>
|
2017-08-10 15:36:09 +00:00
|
|
|
<div class="col-sm-3 col-xs-3 text-right h6 text-uppercase">
|
2015-09-11 13:19:59 +00:00
|
|
|
{{ _("Quantity") }}
|
|
|
|
</div>
|
2017-08-10 15:36:09 +00:00
|
|
|
<div class="col-sm-3 col-xs-3 text-right h6 text-uppercase">
|
2015-09-11 13:19:59 +00:00
|
|
|
{{ _("Amount") }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% for d in doc.items %}
|
|
|
|
<div class="row order-items">
|
2017-08-10 15:36:09 +00:00
|
|
|
<div class="col-sm-6 col-xs-6">
|
2015-09-11 13:19:59 +00:00
|
|
|
{{ item_name_and_description(d) }}
|
|
|
|
</div>
|
2017-08-10 15:36:09 +00:00
|
|
|
<div class="col-sm-3 col-xs-3 text-right">
|
2015-09-11 13:19:59 +00:00
|
|
|
{{ 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>
|
2017-08-10 15:36:09 +00:00
|
|
|
<div class="col-sm-3 col-xs-3 text-right">
|
2015-12-31 07:56:36 +00:00
|
|
|
{{ d.get_formatted("amount") }}
|
2015-09-11 13:19:59 +00:00
|
|
|
<p class="text-muted small">{{
|
2016-05-12 09:52:59 +00:00
|
|
|
_("@ {0}").format(d.get_formatted("rate")) }}</p>
|
2015-09-11 13:19:59 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- taxes -->
|
2016-04-22 13:23:21 +00:00
|
|
|
<div class="order-taxes row">
|
|
|
|
<div class="col-sm-6"><!-- empty --></div>
|
|
|
|
<div class="col-sm-6 text-right">
|
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">
|
2017-08-10 15:36:09 +00:00
|
|
|
<div class="col-sm-6"><!-- empty --></div>
|
|
|
|
<div class="col-sm-6">
|
2016-01-21 10:13:07 +00:00
|
|
|
{% if enabled_checkout %}
|
|
|
|
{% if (doc.doctype=="Sales Order" and doc.per_billed <= 0)
|
|
|
|
or (doc.doctype=="Sales Invoice" and doc.outstanding_amount > 0) %}
|
|
|
|
<div class="page-header-actions-block" data-html-block="header-actions">
|
|
|
|
<p>
|
2017-08-08 05:59:11 +00:00
|
|
|
<a href="/api/method/erpnext.accounts.doctype.payment_request.payment_request.make_payment_request?dn={{ doc.name }}&dt={{ doc.doctype }}&submit_doc=1&order_type=Shopping Cart"
|
2017-07-28 13:24:22 +00:00
|
|
|
class="btn btn-primary btn-sm">{{ _("Pay") }} {{ doc.get_formatted("grand_total") }} </a>
|
2016-01-21 10:13:07 +00:00
|
|
|
</p>
|
2016-01-04 12:07:54 +00:00
|
|
|
</div>
|
2016-01-21 10:13:07 +00:00
|
|
|
{% endif %}
|
2015-12-31 07:56:36 +00:00
|
|
|
{% endif %}
|
2016-01-04 12:07:54 +00:00
|
|
|
</div>
|
2017-08-10 15:36:09 +00:00
|
|
|
|
2017-05-19 10:34:10 +00:00
|
|
|
{% if attachments %}
|
|
|
|
<div class="order-item-table">
|
|
|
|
<div class="row order-items order-item-header text-muted">
|
|
|
|
<div class="col-sm-12 h6 text-uppercase">
|
|
|
|
{{ _("Attachments") }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row order-items">
|
|
|
|
<div class="col-sm-12">
|
|
|
|
{% for attachment in attachments %}
|
|
|
|
<p class="small">
|
|
|
|
<a href="{{ attachment.file_url }}" target="blank"> {{ attachment.file_name }} </a>
|
|
|
|
</p>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2015-12-31 07:56:36 +00:00
|
|
|
</div>
|
2017-08-10 15:36:09 +00:00
|
|
|
{% if doc.terms %}
|
|
|
|
<div class="terms-and-condition text-muted small">
|
|
|
|
<hr><p>{{ doc.terms }}</p>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2015-09-11 13:19:59 +00:00
|
|
|
{% endblock %}
|