From a340fad109bb72763bf32f9a743a29f5c1e5c0b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Thu, 9 Mar 2023 08:21:35 +0800 Subject: [PATCH] Removed the unused entry and account properties from the ReportEntry model of the ledger. --- src/accounting/report/reports/ledger.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/accounting/report/reports/ledger.py b/src/accounting/report/reports/ledger.py index 8572b63..37bd6e7 100644 --- a/src/accounting/report/reports/ledger.py +++ b/src/accounting/report/reports/ledger.py @@ -46,8 +46,6 @@ class ReportEntry: :param entry: The journal entry. """ - self.entry: JournalEntry | None = None - """The journal entry.""" self.transaction: Transaction | None = None """The transaction.""" self.is_brought_forward: bool = False @@ -56,8 +54,6 @@ class ReportEntry: """Whether this is the total entry.""" self.date: date | None = None """The date.""" - self.account: Account | None = None - """The account.""" self.summary: str | None = None """The summary.""" self.debit: Decimal | None = None @@ -69,7 +65,6 @@ class ReportEntry: self.note: str | None = None """The note.""" if entry is not None: - self.entry = entry self.transaction = entry.transaction self.date = entry.transaction.date self.summary = entry.summary