[fix] show item description in form grid based on in_list_view
This commit is contained in:
parent
ecf220a721
commit
5105f909d6
@ -58,7 +58,7 @@
|
|||||||
"fieldname": "description",
|
"fieldname": "description",
|
||||||
"fieldtype": "Small Text",
|
"fieldtype": "Small Text",
|
||||||
"in_filter": 1,
|
"in_filter": 1,
|
||||||
"in_list_view": 1,
|
"in_list_view": 0,
|
||||||
"label": "Description",
|
"label": "Description",
|
||||||
"oldfieldname": "description",
|
"oldfieldname": "description",
|
||||||
"oldfieldtype": "Small Text",
|
"oldfieldtype": "Small Text",
|
||||||
@ -498,7 +498,7 @@
|
|||||||
],
|
],
|
||||||
"idx": 1,
|
"idx": 1,
|
||||||
"istable": 1,
|
"istable": 1,
|
||||||
"modified": "2015-05-27 02:47:15.134435",
|
"modified": "2015-07-02 05:37:29.289574",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Selling",
|
"module": "Selling",
|
||||||
"name": "Sales Order Item",
|
"name": "Sales Order Item",
|
||||||
|
@ -100,7 +100,7 @@
|
|||||||
{
|
{
|
||||||
"fieldname": "description",
|
"fieldname": "description",
|
||||||
"fieldtype": "Text",
|
"fieldtype": "Text",
|
||||||
"in_list_view": 1,
|
"in_list_view": 0,
|
||||||
"label": "Description",
|
"label": "Description",
|
||||||
"oldfieldname": "description",
|
"oldfieldname": "description",
|
||||||
"oldfieldtype": "Text",
|
"oldfieldtype": "Text",
|
||||||
@ -344,7 +344,7 @@
|
|||||||
],
|
],
|
||||||
"idx": 1,
|
"idx": 1,
|
||||||
"istable": 1,
|
"istable": 1,
|
||||||
"modified": "2015-02-25 04:31:21.801200",
|
"modified": "2015-07-02 05:32:56.511570",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Stock",
|
"module": "Stock",
|
||||||
"name": "Stock Entry Detail",
|
"name": "Stock Entry Detail",
|
||||||
|
@ -9,5 +9,7 @@
|
|||||||
{%= doc.get_formatted(df.fieldname) %}
|
{%= doc.get_formatted(df.fieldname) %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
{% } else if (df.fieldname==="description") { %}
|
||||||
|
<p>{{ doc.description }}</p>
|
||||||
{% } %}
|
{% } %}
|
||||||
{% }); %}
|
{% }); %}
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
{% var visible_columns = row.get_visible_columns(["item_code", "qty", "rate", "amount", "stock_uom", "uom", "discount_percentage", "schedule_date", "warehouse", "against_sales_order", "sales_order"]); %}
|
{% var visible_columns = row.get_visible_columns(["item_code", "qty", "rate", "amount",
|
||||||
|
"stock_uom", "uom", "discount_percentage", "schedule_date", "warehouse",
|
||||||
|
"against_sales_order", "sales_order"]); %}
|
||||||
|
|
||||||
{% if(!doc) { %}
|
{% if(!doc) { %}
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@ -48,12 +50,7 @@
|
|||||||
|
|
||||||
{% if(doc.item_name != doc.item_code && in_list(visible_column_fieldnames, "item_name")) { %}
|
{% if(doc.item_name != doc.item_code && in_list(visible_column_fieldnames, "item_name")) { %}
|
||||||
<br>{%= doc.item_name %}{% } %}
|
<br>{%= doc.item_name %}{% } %}
|
||||||
|
|
||||||
{% if((doc.description != doc.item_code != doc.item_name) &&
|
|
||||||
in_list(visible_column_fieldnames, "description")) { %}
|
|
||||||
<br>
|
|
||||||
<strong>Description: </strong>
|
|
||||||
{%= doc.get_formatted("description") %}{% } %}
|
|
||||||
{% include "templates/form_grid/includes/visible_cols.html" %}
|
{% include "templates/form_grid/includes/visible_cols.html" %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user