commit | 2a195d457eca361cc0893c7948b2334e59caceaf | [log] [tgz] |
---|---|---|
author | ruthra kumar <ruthra@erpnext.com> | Thu Jan 11 16:54:30 2024 +0530 |
committer | GitHub <noreply@github.com> | Thu Jan 11 16:54:30 2024 +0530 |
tree | 3c720fc3705976095970f03cfc3fa3bf9b46c020 | |
parent | 951e8e3a73d9ba879d5f947e5643367a0c9716b7 [diff] | |
parent | 268731aec4fb7a8bf9bc698773894d8fa722eb1a [diff] |
Merge pull request #39320 from ruthra-kumar/possible_typeerror_in_consolidated_report fix: possible typeerror in consolidated report
diff --git a/erpnext/accounts/report/consolidated_financial_statement/consolidated_financial_statement.js b/erpnext/accounts/report/consolidated_financial_statement/consolidated_financial_statement.js index 0e0c42d..6210fd1 100644 --- a/erpnext/accounts/report/consolidated_financial_statement/consolidated_financial_statement.js +++ b/erpnext/accounts/report/consolidated_financial_statement/consolidated_financial_statement.js
@@ -128,7 +128,7 @@ } 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");