refactor: boldface for group accounts in financial statements

(cherry picked from commit 545e9e069a)
This commit is contained in:
ruthra kumar
2026-04-13 11:09:12 +05:30
committed by Mergify
parent 39848ffb1e
commit bfe58b2d68
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");