feat: add project filter in reports importing financial statements js file (#36097)
feat: add project filter in financial statements js file
This commit is contained in:
		
							parent
							
								
									0340bfc90d
								
							
						
					
					
						commit
						596a14e34f
					
				| @ -12,14 +12,6 @@ frappe.require("assets/erpnext/js/financial_statements.js", function() { | ||||
| 		erpnext.financial_statements); | ||||
| 
 | ||||
| 	frappe.query_reports["Gross and Net Profit Report"]["filters"].push( | ||||
| 		{ | ||||
| 			"fieldname": "project", | ||||
| 			"label": __("Project"), | ||||
| 			"fieldtype": "MultiSelectList", | ||||
| 			get_data: function(txt) { | ||||
| 				return frappe.db.get_link_options('Project', txt); | ||||
| 			} | ||||
| 		}, | ||||
| 		{ | ||||
| 			"fieldname": "accumulated_values", | ||||
| 			"label": __("Accumulated Values"), | ||||
|  | ||||
| @ -9,16 +9,6 @@ frappe.require("assets/erpnext/js/financial_statements.js", function() { | ||||
| 	erpnext.utils.add_dimensions('Profit and Loss Statement', 10); | ||||
| 
 | ||||
| 	frappe.query_reports["Profit and Loss Statement"]["filters"].push( | ||||
| 		{ | ||||
| 			"fieldname": "project", | ||||
| 			"label": __("Project"), | ||||
| 			"fieldtype": "MultiSelectList", | ||||
| 			get_data: function(txt) { | ||||
| 				return frappe.db.get_link_options('Project', txt, { | ||||
| 					company: frappe.query_report.get_filter_value("company") | ||||
| 				}); | ||||
| 			}, | ||||
| 		}, | ||||
| 		{ | ||||
| 			"fieldname": "include_default_book_entries", | ||||
| 			"label": __("Include Default Book Entries"), | ||||
|  | ||||
| @ -182,6 +182,16 @@ function get_filters() { | ||||
| 					company: frappe.query_report.get_filter_value("company") | ||||
| 				}); | ||||
| 			} | ||||
| 		}, | ||||
| 		{ | ||||
| 			"fieldname": "project", | ||||
| 			"label": __("Project"), | ||||
| 			"fieldtype": "MultiSelectList", | ||||
| 			get_data: function(txt) { | ||||
| 				return frappe.db.get_link_options('Project', txt, { | ||||
| 					company: frappe.query_report.get_filter_value("company") | ||||
| 				}); | ||||
| 			}, | ||||
| 		} | ||||
| 	] | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user