From 8a1cf463b1ef347b2579793bdabde3e90ca84118 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:34:14 +0800 Subject: [PATCH] Renamed the "journal_entry_date" parameter to "date" in the constructor of the CSVRow class in the "accounting.report.reports.ledger" module. --- src/accounting/report/reports/ledger.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/accounting/report/reports/ledger.py b/src/accounting/report/reports/ledger.py index 866b0f7..428b957 100644 --- a/src/accounting/report/reports/ledger.py +++ b/src/accounting/report/reports/ledger.py @@ -196,7 +196,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, description: str | None, debit: str | Decimal | None, credit: str | Decimal | None, @@ -204,14 +204,14 @@ 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 description: The description. :param debit: The debit amount. :param credit: The credit amount. :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.description: str | None = description """The description."""