fixes in grid reports

This commit is contained in:
Anand Doshi 2012-10-05 20:33:47 +05:30
parent d7972e361b
commit a49475dc72
2 changed files with 5 additions and 1 deletions

View File

@ -42,7 +42,10 @@ erpnext.StockAgeing = erpnext.StockGridReport.extend({
setup_columns: function() {
this.columns = [
{id: "name", name: "Item", field: "name", width: 300,
formatter: this.link_formatter},
link_formatter: {
open_btn: true,
doctype: '"Item"'
}},
{id: "average_age", name: "Average Age", field: "average_age",
formatter: this.currency_formatter},
{id: "earliest", name: "Earliest", field: "earliest",

View File

@ -47,6 +47,7 @@ erpnext.StockLedger = erpnext.StockGridReport.extend({
link_formatter: {
filter_input: "item_code",
open_btn: true,
doctype: '"Item"',
}},
{id: "warehouse", name: "Warehouse", field: "warehouse", width: 100,
link_formatter: {filter_input: "warehouse"}},