51 lines
1.7 KiB
HTML
51 lines
1.7 KiB
HTML
{% var visible_columns = row.get_visible_columns(["item_code",
|
|
"item_name", "amount", "stock_uom", "uom", "qty",
|
|
"s_warehouse", "t_warehouse", "incoming_rate"]);
|
|
%}
|
|
|
|
{% if(!doc) { %}
|
|
<div class="row">
|
|
<div class="col-sm-5 col-xs-4">{%= __("Item") %}</div>
|
|
<div class="col-sm-3 col-xs-4">{%= __("Warehouse") %}</div>
|
|
<div class="col-sm-2 col-xs-2 text-right">{%= __("Qty") %}</div>
|
|
<div class="col-sm-2 col-xs-2 text-right">{%= __("Amount") %}</div>
|
|
</div>
|
|
{% } else { %}
|
|
<div class="row">
|
|
<div class="col-sm-5 col-xs-4"><strong>{%= doc.item_code %}</strong>
|
|
{% if(doc.item_name != doc.item_code) { %}
|
|
<br>{%= doc.item_name %}{% } %}
|
|
{% include "templates/form_grid/includes/visible_cols.html" %}
|
|
{% if(frm.doc.docstatus==0 && doc.s_warehouse && doc.actual_qty < doc.qty) { %}
|
|
<span class="text-danger small" style="margin-left: 15px;">
|
|
Not in Stock
|
|
</span>
|
|
{% } %}
|
|
</div>
|
|
|
|
<!-- warehouse -->
|
|
<div class="col-sm-3 col-xs-4">
|
|
{% if(doc.s_warehouse) { %}
|
|
<span class="label label-default grid-label" title="{% __("Source" )%}">
|
|
{%= doc.s_warehouse || "" %}</span>
|
|
{% } %}
|
|
{% if(doc.t_warehouse) { %}<span class="label label-primary grid-label" title="{% __("Target" )%}">
|
|
{%= doc.t_warehouse || "" %}</span>{% } %}
|
|
</div>
|
|
|
|
<!-- qty -->
|
|
<div class="col-sm-2 col-xs-2 text-right">
|
|
{%= doc.get_formatted("qty") %}
|
|
<br><small>{%= doc.uom || doc.stock_uom %}</small>
|
|
</div>
|
|
|
|
<!-- amount -->
|
|
<div class="col-sm-2 col-xs-2 text-right">
|
|
{%= doc.get_formatted("amount") %}
|
|
<div class="small text-muted">
|
|
{%= doc.get_formatted("incoming_rate") %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% } %}
|