24 lines
		
	
	
		
			855 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			855 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| // Copyright (c) 2013, Frappe Technologies Pvt. Ltd. and contributors
 | |
| // For license information, please see license.txt
 | |
| 
 | |
| frappe.require("assets/erpnext/js/financial_statements.js", function() {
 | |
| 	frappe.query_reports["Cash Flow"] = $.extend({},
 | |
| 		erpnext.financial_statements);
 | |
| 
 | |
| 	// The last item in the array is the definition for Presentation Currency
 | |
| 	// filter. It won't be used in cash flow for now so we pop it. Please take
 | |
| 	// of this if you are working here.
 | |
| 	frappe.query_reports["Cash Flow"]["filters"].pop();
 | |
| 
 | |
| 	frappe.query_reports["Cash Flow"]["filters"].push({
 | |
| 		"fieldname": "accumulated_values",
 | |
| 		"label": __("Accumulated Values"),
 | |
| 		"fieldtype": "Check"
 | |
| 	});
 | |
| 
 | |
| 	frappe.query_reports["Cash Flow"]["filters"].push({
 | |
| 		"fieldname": "include_default_book_entries",
 | |
| 		"label": __("Include Default Book Entries"),
 | |
| 		"fieldtype": "Check"
 | |
| 	});
 | |
| }); |