Show item description in grid view based on 'In List View' property

This commit is contained in:
Nabin Hait
2015-06-05 15:49:25 +05:30
parent 27d7f21553
commit 6bf301f53c
2 changed files with 7 additions and 1 deletions

View File

@@ -47,6 +47,12 @@
{% if(doc.item_name != doc.item_code) { %}
<br>{%= doc.item_name %}{% } %}
{% if((doc.description != doc.item_code != doc.item_name) &&
in_list($.map(visible_columns, function(x, i) {return x.fieldname}), "description")) { %}
<br>
<strong>Description: </strong>
{%= doc.get_formatted("description") %}{% } %}
{% include "templates/form_grid/includes/visible_cols.html" %}
</div>