Merge pull request #54237 from ruthra-kumar/bold_group_accounts

refactor: boldface for group accounts in financial statements
This commit is contained in:
ruthra kumar
2026-04-13 11:40:23 +05:30
committed by GitHub
2 changed files with 5 additions and 1 deletions

View File

@@ -142,6 +142,7 @@ def prepare_data(accounts, filters, company_currency, dimension_list):
total = 0
row = {
"account": d.name,
"is_group": d.is_group,
"parent_account": d.parent_account,
"indent": d.indent,
"from_date": filters.from_date,

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");