[list] reports for item list

This commit is contained in:
Rushabh Mehta 2016-06-15 12:57:22 +05:30
parent dc1758b36e
commit b5f2c78f8f
3 changed files with 25 additions and 4 deletions

View File

@ -15,7 +15,28 @@ frappe.listview_settings['Item'] = {
} else if (doc.variant_of) {
return [__("Variant"), "green", "variant_of,=," + doc.variant_of];
}
},
reports: [
{
name: 'Stock Summary',
report_type: 'Page',
route: 'stock-balance'
},
{
name: 'Stock Ledger',
report_type: 'Script Report'
},
{
name: 'Stock Balance',
report_type: 'Script Report'
},
{
name: 'Stock Projected Qty',
report_type: 'Script Report'
}
]
};
frappe.help.youtube_id["Item"] = "qXaEwld4_Ps";

View File

@ -1,7 +1,7 @@
frappe.pages['stock-balance'].on_page_load = function(wrapper) {
var page = frappe.ui.make_app_page({
parent: wrapper,
title: 'Stock Balance',
title: 'Stock Summary',
single_column: true
});
page.start = 0;

View File

@ -13,8 +13,8 @@ def execute(filters=None):
},
{
'fieldname': 'mins',
'label': 'Float',
'fieldtype': 'Mins to First Response'
'fieldtype': 'Float',
'label': 'Mins to First Response'
},
]