2015-12-12 10:33:01 +08:00
|
|
|
// Copyright (c) 2013, Frappe Technologies Pvt. Ltd. and contributors
|
|
|
|
// For license information, please see license.txt
|
|
|
|
|
2016-04-29 17:22:42 +05:30
|
|
|
frappe.require("assets/erpnext/js/financial_statements.js", function() {
|
2016-08-19 11:48:58 +05:30
|
|
|
frappe.query_reports["Cash Flow"] = $.extend({},
|
|
|
|
erpnext.financial_statements);
|
2015-12-12 10:33:01 +08:00
|
|
|
|
2018-02-12 10:34:50 +01:00
|
|
|
// 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.
|
|
|
|
|
2019-07-10 22:22:14 +05:30
|
|
|
frappe.query_reports["Cash Flow"]["filters"].splice(5, 1);
|
2019-06-18 18:34:14 +05:30
|
|
|
|
2019-07-10 22:22:14 +05:30
|
|
|
frappe.query_reports["Cash Flow"]["filters"].push(
|
|
|
|
{
|
|
|
|
"fieldname": "accumulated_values",
|
|
|
|
"label": __("Accumulated Values"),
|
|
|
|
"fieldtype": "Check"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"fieldname": "include_default_book_entries",
|
|
|
|
"label": __("Include Default Book Entries"),
|
2020-01-27 15:18:51 +05:30
|
|
|
"fieldtype": "Check",
|
|
|
|
"default": 1
|
2019-07-10 22:22:14 +05:30
|
|
|
}
|
|
|
|
);
|
2016-04-29 17:22:42 +05:30
|
|
|
});
|