[list] reports for item list
This commit is contained in:
		
							parent
							
								
									dc1758b36e
								
							
						
					
					
						commit
						b5f2c78f8f
					
				| @ -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"; | ||||
|  | ||||
| @ -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; | ||||
|  | ||||
| @ -13,8 +13,8 @@ def execute(filters=None): | ||||
| 		}, | ||||
| 		{ | ||||
| 			'fieldname': 'mins', | ||||
| 			'label': 'Float', | ||||
| 			'fieldtype': 'Mins to First Response' | ||||
| 			'fieldtype': 'Float', | ||||
| 			'label': 'Mins to First Response' | ||||
| 		}, | ||||
| 	] | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user