Revised to capitalize the account titles when initializing the base accounts instead of when displaying the account titles, so that the titles of the user-added accounts are not capitalized incorrectly.
This commit is contained in:
@ -454,11 +454,11 @@ class BalanceSheet(BaseReport):
|
||||
:return: The CSV rows for the section.
|
||||
"""
|
||||
rows: list[CSVHalfRow] \
|
||||
= [CSVHalfRow(section.title.title.title(), None)]
|
||||
= [CSVHalfRow(section.title.title, None)]
|
||||
for subsection in section.subsections:
|
||||
rows.append(CSVHalfRow(f" {subsection.title.title.title()}", None))
|
||||
rows.append(CSVHalfRow(f" {subsection.title.title}", None))
|
||||
for account in subsection.accounts:
|
||||
rows.append(CSVHalfRow(f" {str(account.account).title()}",
|
||||
rows.append(CSVHalfRow(f" {str(account.account)}",
|
||||
account.amount))
|
||||
return rows
|
||||
|
||||
|
Reference in New Issue
Block a user