-
Notifications
You must be signed in to change notification settings - Fork 7.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37393 from ruthra-kumar/import_financial_statemen…
…ts_in_bundle refactor: import 'financial_statements.js' in erpnext bundle
- Loading branch information
Showing
9 changed files
with
479 additions
and
495 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,23 @@ | ||
// Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors | ||
// License: GNU General Public License v3. See license.txt | ||
|
||
frappe.require("assets/erpnext/js/financial_statements.js", function () { | ||
frappe.query_reports["Balance Sheet"] = $.extend( | ||
{}, | ||
erpnext.financial_statements | ||
); | ||
frappe.query_reports["Balance Sheet"] = $.extend( | ||
{}, | ||
erpnext.financial_statements | ||
); | ||
|
||
erpnext.utils.add_dimensions("Balance Sheet", 10); | ||
erpnext.utils.add_dimensions("Balance Sheet", 10); | ||
|
||
frappe.query_reports["Balance Sheet"]["filters"].push({ | ||
fieldname: "accumulated_values", | ||
label: __("Accumulated Values"), | ||
fieldtype: "Check", | ||
default: 1, | ||
}); | ||
frappe.query_reports["Balance Sheet"]["filters"].push({ | ||
fieldname: "accumulated_values", | ||
label: __("Accumulated Values"), | ||
fieldtype: "Check", | ||
default: 1, | ||
}); | ||
|
||
frappe.query_reports["Balance Sheet"]["filters"].push({ | ||
fieldname: "include_default_book_entries", | ||
label: __("Include Default Book Entries"), | ||
fieldtype: "Check", | ||
default: 1, | ||
}); | ||
frappe.query_reports["Balance Sheet"]["filters"].push({ | ||
fieldname: "include_default_book_entries", | ||
label: __("Include Default Book Entries"), | ||
fieldtype: "Check", | ||
default: 1, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
// 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); | ||
frappe.query_reports["Cash Flow"] = $.extend( | ||
{}, | ||
erpnext.financial_statements | ||
); | ||
|
||
erpnext.utils.add_dimensions('Cash Flow', 10); | ||
erpnext.utils.add_dimensions('Cash Flow', 10); | ||
|
||
// 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. | ||
// 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(8, 1); | ||
frappe.query_reports["Cash Flow"]["filters"].splice(8, 1); | ||
|
||
frappe.query_reports["Cash Flow"]["filters"].push( | ||
{ | ||
"fieldname": "include_default_book_entries", | ||
"label": __("Include Default Book Entries"), | ||
"fieldtype": "Check", | ||
"default": 1 | ||
} | ||
); | ||
}); | ||
frappe.query_reports["Cash Flow"]["filters"].push( | ||
{ | ||
"fieldname": "include_default_book_entries", | ||
"label": __("Include Default Book Entries"), | ||
"fieldtype": "Check", | ||
"default": 1 | ||
} | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.