mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-01 20:48:27 +00:00
fix: update account identification to avoid using name_field in financial statements
(cherry picked from commit 1fd6c3ba1a)
This commit is contained in:
committed by
Mergify
parent
e6f0bb66e2
commit
7b60ec8457
@@ -64,7 +64,7 @@ erpnext.financial_statements = {
|
|||||||
const isPeriodColumn = periodKeys.includes(baseName);
|
const isPeriodColumn = periodKeys.includes(baseName);
|
||||||
|
|
||||||
return {
|
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,
|
isPeriod: isPeriodColumn,
|
||||||
segmentIndex: valueMatch && valueMatch[1] ? parseInt(valueMatch[1]) : null,
|
segmentIndex: valueMatch && valueMatch[1] ? parseInt(valueMatch[1]) : null,
|
||||||
fieldname: baseName,
|
fieldname: baseName,
|
||||||
|
|||||||
Reference in New Issue
Block a user