Revised to use the title case in the CSV output of the journal and income and expenses.

This commit is contained in:
依瑪貓 2023-03-05 22:46:23 +08:00
parent 0173104c84
commit 1f95212494

View File

@ -64,7 +64,7 @@ class JournalRow(ReportRow):
def as_dict(self) -> dict[str, t.Any]:
return {"Date": self.transaction.date,
"Currency": self.currency_code,
"Account": str(self.account),
"Account": str(self.account).title(),
"Summary": self.summary,
"Debit": self.amount if self.is_debit else None,
"Credit": None if self.is_debit else self.amount,
@ -163,7 +163,7 @@ class IncomeExpensesRow(ReportRow):
"Balance": self.balance,
"Note": None}
return {"Date": self.date,
"Account": str(self.account),
"Account": str(self.account).title(),
"Summary": self.summary,
"Income": self.income,
"Expense": self.expense,