From d4cf224d6ba3d1b1da57462d57d6fc34905e8a6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Wed, 26 Apr 2023 13:33:50 +0800 Subject: [PATCH] Renamed the "journal_entry_date" parameter to "date" in the constructor of the CSVRow class in the "accounting.report.reports.income_expenses" module. --- src/accounting/report/reports/income_expenses.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/accounting/report/reports/income_expenses.py b/src/accounting/report/reports/income_expenses.py index cb9ca43..9ed35b5 100644 --- a/src/accounting/report/reports/income_expenses.py +++ b/src/accounting/report/reports/income_expenses.py @@ -213,7 +213,7 @@ class LineItemCollector: class CSVRow(BaseCSVRow): """A row in the CSV.""" - def __init__(self, journal_entry_date: dt.date | str | None, + def __init__(self, date: dt.date | str | None, account: str | None, description: str | None, income: str | Decimal | None, @@ -222,7 +222,7 @@ class CSVRow(BaseCSVRow): note: str | None): """Constructs a row in the CSV. - :param journal_entry_date: The journal entry date. + :param date: The journal entry date. :param account: The account. :param description: The description. :param income: The income. @@ -230,7 +230,7 @@ class CSVRow(BaseCSVRow): :param balance: The balance. :param note: The note. """ - self.date: dt.date | str | None = journal_entry_date + self.date: dt.date | str | None = date """The date.""" self.account: str | None = account """The account."""