mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-19 06:45:11 +00:00
refactor: boldface for group accounts in financial statements
(cherry picked from commit 545e9e069a)
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user