added description in stock level and balance report
This commit is contained in:
parent
056bdabc6b
commit
6072a682bc
@ -60,7 +60,7 @@ data_map = {
|
||||
|
||||
# Stock
|
||||
"Item": {
|
||||
"columns": ["name", "if(item_name=name, '', item_name) as item_name",
|
||||
"columns": ["name", "if(item_name=name, '', item_name) as item_name", "description",
|
||||
"item_group as parent_item_group", "stock_uom", "brand", "valuation_method"],
|
||||
# "conditions": ["docstatus < 2"],
|
||||
"order_by": "name",
|
||||
|
@ -42,15 +42,18 @@ erpnext.StockBalance = erpnext.StockAnalytics.extend({
|
||||
this.columns = [
|
||||
{id: "name", name: "Item", field: "name", width: 300,
|
||||
formatter: this.tree_formatter},
|
||||
{id: "opening", name: "Opening", field: "opening", width: 100,
|
||||
formatter: this.currency_formatter},
|
||||
{id: "inflow", name: "In", field: "inflow", width: 100,
|
||||
formatter: this.currency_formatter},
|
||||
{id: "outflow", name: "Out", field: "outflow", width: 100,
|
||||
formatter: this.currency_formatter},
|
||||
{id: "closing", name: "Closing", field: "closing", width: 100,
|
||||
formatter: this.currency_formatter},
|
||||
{id: "brand", name: "Brand", field: "brand", width: 100},
|
||||
{id: "opening", name: "Opening", field: "opening",
|
||||
formatter: this.currency_formatter},
|
||||
{id: "inflow", name: "In", field: "inflow",
|
||||
formatter: this.currency_formatter},
|
||||
{id: "outflow", name: "Out", field: "outflow",
|
||||
formatter: this.currency_formatter},
|
||||
{id: "closing", name: "Closing", field: "closing",
|
||||
formatter: this.currency_formatter},
|
||||
{id: "item_name", name: "Item Name", field: "item_name", width: 100},
|
||||
{id: "description", name: "Description", field: "description", width: 200,
|
||||
formatter: this.text_formatter},
|
||||
];
|
||||
},
|
||||
|
||||
|
@ -84,10 +84,12 @@ erpnext.StockLevel = erpnext.StockGridReport.extend({
|
||||
{id: "projected_qty", name: "Projected Qty",
|
||||
field: "projected_qty", width: 80, formatter: this.currency_formatter},
|
||||
{id: "uom", name: "UOM", field: "uom", width: 60},
|
||||
{id: "item_name", name: "Item Name", field: "item_name", width: 100,
|
||||
formatter: this.text_formatter},
|
||||
{id: "brand", name: "Brand", field: "brand", width: 100,
|
||||
link_formatter: {filter_input: "brand"}},
|
||||
{id: "item_name", name: "Item Name", field: "item_name", width: 100,
|
||||
formatter: this.text_formatter},
|
||||
{id: "description", name: "Description", field: "description", width: 200,
|
||||
formatter: this.text_formatter},
|
||||
];
|
||||
},
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user