refactor: boldface for group accounts in financial statements

This commit is contained in:
ruthra kumar
2026-04-13 11:09:12 +05:30
parent 3617a9b674
commit 545e9e069a
2 changed files with 5 additions and 1 deletions

View File

@@ -230,7 +230,10 @@ erpnext.financial_statements = {
value = default_formatter(value, row, column, data);
if (data && !data.parent_account && !data.parent_section) {
if (
data &&
((!data.parent_account && !data.parent_section) || data.is_group_account || data.is_group)
) {
value = $(`<span>${value}</span>`);
var $value = $(value).css("font-weight", "bold");