Permalink
Browse files

fixes in grid reports

  • Loading branch information...
1 parent d7972e3 commit a49475dc720f087deb202081c475f3de69895831 @anandpdoshi anandpdoshi committed Oct 5, 2012
Showing with 5 additions and 1 deletion.
  1. +4 −1 stock/page/stock_ageing/stock_ageing.js
  2. +1 −0 stock/page/stock_ledger/stock_ledger.js
@@ -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",
@@ -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"}},

0 comments on commit a49475d

Please sign in to comment.