brotherton-erpnext/erpnext/stock/dashboard/item_dashboard_list.html

62 lines
2.3 KiB
HTML
Raw Normal View History

2016-04-21 13:30:34 +00:00
{% for d in data %}
2016-04-25 12:23:42 +00:00
<div class="dashboard-list-item">
2016-04-21 13:30:34 +00:00
<div class="row">
2020-08-23 11:06:28 +00:00
<div class="col-sm-3" style="margin-top: 8px;">
2016-04-21 13:30:34 +00:00
<a data-type="warehouse" data-name="{{ d.warehouse }}">{{ d.warehouse }}</a>
</div>
2020-08-23 11:06:28 +00:00
<div class="col-sm-3" style="margin-top: 8px;">
2016-04-22 11:52:22 +00:00
{% if show_item %}
2016-04-21 13:30:34 +00:00
<a data-type="item"
data-name="{{ d.item_code }}">{{ d.item_code }}
{% if d.item_name != d.item_code %}({{ d.item_name }}){% endif %}
</a>
2016-04-21 13:30:34 +00:00
{% endif %}
</div>
2020-08-23 11:06:28 +00:00
<div class="col-sm-4">
2016-04-21 13:30:34 +00:00
<span class="inline-graph">
<span class="inline-graph-half" title="{{ __("Reserved Qty") }}">
<span class="inline-graph-count">{{ d.total_reserved }}</span>
<span class="inline-graph-bar">
<span class="inline-graph-bar-inner"
style="width: {{ cint(Math.abs(d.total_reserved)/max_count * 100) || 5 }}%">
</span>
</span>
2016-04-21 13:30:34 +00:00
</span>
2017-04-06 18:03:36 +00:00
<span class="inline-graph-half" title="{{ __("Actual Qty {0} / Waiting Qty {1}", [d.actual_qty, d.pending_qty]) }}">
2016-04-21 13:30:34 +00:00
<span class="inline-graph-count">
{{ d.actual_qty }} {{ (d.pending_qty > 0) ? ("(" + d.pending_qty+ ")") : "" }}
</span>
<span class="inline-graph-bar">
<span class="inline-graph-bar-inner dark"
style="width: {{ cint(d.actual_qty/max_count * 100) }}%">
</span>
2016-04-21 13:30:34 +00:00
{% if d.pending_qty > 0 %}
<span class="inline-graph-bar-inner" title="{{ __("Projected Qty") }}"
style="width: {{ cint(d.pending_qty/max_count * 100) }}%">
</span>
2016-04-21 13:30:34 +00:00
{% endif %}
</span>
</span>
2016-04-21 13:30:34 +00:00
</span>
</div>
{% if can_write %}
2020-08-23 11:06:28 +00:00
<div class="col-sm-2 text-right" style="margin: var(--margin-sm) 0;">
{% if d.actual_qty %}
<button class="btn btn-default btn-xs btn-move"
data-disable_quick_entry="{{ d.disable_quick_entry }}"
data-warehouse="{{ d.warehouse }}"
data-actual_qty="{{ d.actual_qty }}"
data-item="{{ escape(d.item_code) }}">{{ __("Move") }}</a>
{% endif %}
<button style="margin-left: 7px;" class="btn btn-default btn-xs btn-add"
data-disable_quick_entry="{{ d.disable_quick_entry }}"
data-warehouse="{{ d.warehouse }}"
data-actual_qty="{{ d.actual_qty }}"
data-item="{{ escape(d.item_code) }}"
data-rate="{{ d.valuation_rate }}">{{ __("Add") }}</a>
</div>
{% endif %}
2016-04-21 13:30:34 +00:00
</div>
2016-04-25 12:23:42 +00:00
</div>
2018-01-25 11:41:52 +00:00
{% endfor %}