2014-07-29 10:37:43 +00:00
|
|
|
{% var visible_columns = row.get_visible_columns(["item_code",
|
|
|
|
"item_name", "description", "amount", "stock_uom", "uom", "qty",
|
|
|
|
"s_warehouse", "t_warehouse", "incoming_rate"]);
|
|
|
|
%}
|
|
|
|
|
|
|
|
{% if(!doc) { %}
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-8">{%= __("Item") %}</div>
|
|
|
|
<div class="col-sm-2 text-right">{%= __("Qty") %}</div>
|
|
|
|
<div class="col-sm-2 text-right">{%= __("Amount") %}</div>
|
|
|
|
</div>
|
|
|
|
{% } else { %}
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-8"><strong>{%= doc.item_code %}</strong>
|
|
|
|
{% if(doc.item_name != doc.item_code) { %}
|
|
|
|
<br>{%= doc.item_name %}{% } %}
|
|
|
|
{% if(doc.item_name != doc.description) { %}
|
|
|
|
<p>{%= doc.description %}</p>{% } %}
|
|
|
|
{% include "templates/form_grid/includes/visible_cols.html" %}
|
|
|
|
<div>
|
2014-08-01 10:37:59 +00:00
|
|
|
{% if(doc.s_warehouse) { %}<span class="label
|
|
|
|
{%= (doc.actual_qty >= doc.qty) ? "label-success"
|
|
|
|
: "label-danger" %}"
|
|
|
|
title="{%= (doc.actual_qty >= doc.qty) ? __("In Stock")
|
|
|
|
: __("Not In Stock") %}">
|
2014-07-29 10:37:43 +00:00
|
|
|
{%= doc.s_warehouse || "" %}</span>{% } %}
|
|
|
|
<i class="icon-long-arrow-right"></i>
|
|
|
|
{% if(doc.t_warehouse) { %}<span class="label label-primary">
|
|
|
|
{%= doc.t_warehouse || "" %}</span>{% } %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- qty -->
|
|
|
|
<div class="col-sm-2 text-right">
|
2014-07-30 13:02:08 +00:00
|
|
|
{%= doc.get_formatted("qty") %}
|
2014-07-29 10:37:43 +00:00
|
|
|
<br><small>{%= doc.uom || doc.stock_uom %}</small>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- amount -->
|
|
|
|
<div class="col-sm-2 text-right">
|
2014-07-30 13:02:08 +00:00
|
|
|
{%= doc.get_formatted("amount") %}
|
2014-07-29 10:37:43 +00:00
|
|
|
<div class="small text-muted">
|
2014-07-30 13:02:08 +00:00
|
|
|
{%= doc.get_formatted("incoming_rate") %}</div>
|
2014-07-29 10:37:43 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% } %}
|