changed item from select to link in stock ledger and stock level

This commit is contained in:
Rushabh Mehta 2013-01-21 18:19:52 +05:30
parent d707e2b6b6
commit 70d4fbb7ea
2 changed files with 4 additions and 4 deletions

View File

@ -79,9 +79,9 @@ erpnext.StockLedger = erpnext.StockGridReport.extend({
default_value: "Select Warehouse...", filter: function(val, item, opts) { default_value: "Select Warehouse...", filter: function(val, item, opts) {
return item.warehouse == val || val == opts.default_value; return item.warehouse == val || val == opts.default_value;
}}, }},
{fieldtype:"Select", label: "Item Code", link:"Item", default_value: "Select Item...", {fieldtype:"Link", label: "Item Code", link:"Item", default_value: "Select Item...",
filter: function(val, item, opts) { filter: function(val, item, opts) {
return item.item_code == val || val == opts.default_value; return item.item_code == val || !val;
}}, }},
{fieldtype:"Select", label: "Brand", link:"Brand", {fieldtype:"Select", label: "Brand", link:"Brand",
default_value: "Select Brand...", filter: function(val, item, opts) { default_value: "Select Brand...", filter: function(val, item, opts) {

View File

@ -98,9 +98,9 @@ erpnext.StockLevel = erpnext.StockGridReport.extend({
}, },
filters: [ filters: [
{fieldtype:"Select", label: "Item Code", link:"Item", default_value: "Select Item...", {fieldtype:"Link", label: "Item Code", link:"Item", default_value: "Select Item...",
filter: function(val, item, opts) { filter: function(val, item, opts) {
return item.item_code == val || val == opts.default_value; return item.item_code == val || !val;
}}, }},
{fieldtype:"Select", label: "Warehouse", link:"Warehouse", {fieldtype:"Select", label: "Warehouse", link:"Warehouse",