Revised to use the title case in the CSV output of the journal and income and expenses.
This commit is contained in:
parent
0173104c84
commit
1f95212494
@ -64,7 +64,7 @@ class JournalRow(ReportRow):
|
|||||||
def as_dict(self) -> dict[str, t.Any]:
|
def as_dict(self) -> dict[str, t.Any]:
|
||||||
return {"Date": self.transaction.date,
|
return {"Date": self.transaction.date,
|
||||||
"Currency": self.currency_code,
|
"Currency": self.currency_code,
|
||||||
"Account": str(self.account),
|
"Account": str(self.account).title(),
|
||||||
"Summary": self.summary,
|
"Summary": self.summary,
|
||||||
"Debit": self.amount if self.is_debit else None,
|
"Debit": self.amount if self.is_debit else None,
|
||||||
"Credit": None if self.is_debit else self.amount,
|
"Credit": None if self.is_debit else self.amount,
|
||||||
@ -163,7 +163,7 @@ class IncomeExpensesRow(ReportRow):
|
|||||||
"Balance": self.balance,
|
"Balance": self.balance,
|
||||||
"Note": None}
|
"Note": None}
|
||||||
return {"Date": self.date,
|
return {"Date": self.date,
|
||||||
"Account": str(self.account),
|
"Account": str(self.account).title(),
|
||||||
"Summary": self.summary,
|
"Summary": self.summary,
|
||||||
"Income": self.income,
|
"Income": self.income,
|
||||||
"Expense": self.expense,
|
"Expense": self.expense,
|
||||||
|
Loading…
Reference in New Issue
Block a user