2014-07-30 13:02:08 +00:00
|
|
|
{% var visible_columns = row.get_visible_columns(["item_code", "warehouse",
|
2015-06-02 09:02:18 +00:00
|
|
|
"item_name", "amount", "stock_uom", "uom", "qty", "schedule_date"]); %}
|
2014-07-29 10:37:43 +00:00
|
|
|
|
|
|
|
{% if(!doc) { %}
|
|
|
|
<div class="row">
|
2015-02-19 14:35:45 +00:00
|
|
|
<div class="col-sm-4">{%= __("Item") %}</div>
|
|
|
|
<div class="col-sm-3">{%= __("Required On") %}</div>
|
|
|
|
<div class="col-sm-3">{%= __("Warehouse") %}</div>
|
|
|
|
<div class="col-sm-2 text-right">{%= __("Qty") %}</div>
|
2014-07-29 10:37:43 +00:00
|
|
|
</div>
|
|
|
|
{% } else { %}
|
|
|
|
<div class="row">
|
2015-02-19 14:35:45 +00:00
|
|
|
<div class="col-sm-4">
|
|
|
|
<span class="indicator {%= (doc.qty==doc.ordered_qty) ? "green" : "orange" %}">{%= doc.item_code %}</strong>
|
2014-07-29 10:37:43 +00:00
|
|
|
{% if(doc.item_name != doc.item_code) { %}
|
|
|
|
<br>{%= doc.item_name %}{% } %}
|
2015-02-19 14:35:45 +00:00
|
|
|
<!-- {% if(doc.item_name != doc.description) { %}
|
|
|
|
<p>{%= doc.description %}</p>{% } %} -->
|
|
|
|
{% include "templates/form_grid/includes/visible_cols.html" %}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="col-sm-3">
|
|
|
|
{% if(doc.schedule_date) { %}
|
|
|
|
<span title="{%= __("Reqd By Date") %}" class="{%=
|
|
|
|
(frappe.datetime.get_diff(doc.schedule_date, frappe.datetime.get_today()) < 0
|
|
|
|
&& doc.ordered_qty < doc.qty)
|
|
|
|
? "text-danger" : "text-muted" %}">
|
|
|
|
{%= doc.get_formatted("schedule_date") %}</span>
|
|
|
|
{% } %}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- warehouse -->
|
|
|
|
<div class="col-sm-3">
|
2015-02-17 14:25:17 +00:00
|
|
|
{% if(doc.warehouse) { %}
|
2015-02-18 06:08:05 +00:00
|
|
|
<span class="label label-default" title="{%= __("For Warehouse") %}"
|
|
|
|
style="margin-right: 10px;">
|
|
|
|
{%= doc.warehouse %}
|
|
|
|
</span>
|
2015-02-17 14:25:17 +00:00
|
|
|
{% } %}
|
2015-02-19 14:35:45 +00:00
|
|
|
</div>
|
2014-07-29 10:37:43 +00:00
|
|
|
|
|
|
|
<!-- qty -->
|
2015-02-19 14:35:45 +00:00
|
|
|
<div class="col-sm-2 text-right">
|
2014-07-30 13:02:08 +00:00
|
|
|
{%= doc.get_formatted("qty") %}
|
2015-02-19 14:35:45 +00:00
|
|
|
<span class="small">{%= doc.uom || doc.stock_uom %}</span>
|
2014-07-29 10:37:43 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% } %}
|