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

This commit is contained in:
Abdeali Chharchhoda
2026-04-23 17:05:33 +05:30
parent 4274c2aba3
commit 1fd6c3ba1a

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,