Merge pull request #38996 from frappe/mergify/bp/version-15/pr-38995

fix: undefined error in consolidated financial report (backport #38995)
This commit is contained in:
ruthra kumar 2023-12-28 17:45:35 +05:30 committed by GitHub
commit 12c5f0b6b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -128,7 +128,7 @@ frappe.query_reports["Consolidated Financial Statement"] = {
}
value = default_formatter(value, row, column, data);
if (!data.parent_account) {
if (data && !data.parent_account) {
value = $(`<span>${value}</span>`);
var $value = $(value).css("font-weight", "bold");