fix: update account identification to avoid using name_field in financial statements

(cherry picked from commit 1fd6c3ba1a)
This commit is contained in:
Abdeali Chharchhoda
2026-04-23 17:05:33 +05:30
committed by Mergify
parent e6f0bb66e2
commit 7b60ec8457

View File

@@ -64,7 +64,7 @@ erpnext.financial_statements = {
const isPeriodColumn = periodKeys.includes(baseName);
return {
isAccount: baseName === erpnext.financial_statements.name_field,
isAccount: baseName === "account", // DO NOT USE `name_field` ! This can be overridden in some reports!
isPeriod: isPeriodColumn,
segmentIndex: valueMatch && valueMatch[1] ? parseInt(valueMatch[1]) : null,
fieldname: baseName,