{% $.each(stock_summary, (idx, row) => { %}
{% if(row.image) { %} {% } else { %}
{{frappe.get_abbr(row.item_code, 2)}}
{% } %}
{% if (row.item_code === row.item_name) { %} {{row.item_link}} {% } else { %} {{row.item_link}}

{{row.item_name}}

{% } %}
{{ frappe.format(row.actual_qty, { fieldtype: "Float"})}}
{{ frappe.format(row.reserved_stock, { fieldtype: "Float"})}}
{{ row.total_reserved }} {{ row.actual_qty }} {{ (row.pending_qty > 0) ? ("(" + row.pending_qty+ ")") : "" }} {% if row.pending_qty > 0 %} {% endif %}
{% }); %}