433e58d131
* feat: Add report summary API for Balance Sheet and PL report * fix: Add summary cards in Cash flow report * feat: Add report summary in consolidated financial statements * fix: Remove accumulated values filter from P&L and cashflow report * fix: set company default currency in profit and loss statement if no data Co-authored-by: Prssanna Desai <prssud@gmail.com>
22 lines
733 B
JavaScript
22 lines
733 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"].splice(5, 1);
|
|
|
|
frappe.query_reports["Cash Flow"]["filters"].push(
|
|
{
|
|
"fieldname": "include_default_book_entries",
|
|
"label": __("Include Default Book Entries"),
|
|
"fieldtype": "Check",
|
|
"default": 1
|
|
}
|
|
);
|
|
}); |