Removed the unused entry and account properties from the ReportEntry model of the ledger.

This commit is contained in:
依瑪貓 2023-03-09 08:21:35 +08:00
parent 555ad388bc
commit a340fad109

View File

@ -46,8 +46,6 @@ class ReportEntry:
:param entry: The journal entry. :param entry: The journal entry.
""" """
self.entry: JournalEntry | None = None
"""The journal entry."""
self.transaction: Transaction | None = None self.transaction: Transaction | None = None
"""The transaction.""" """The transaction."""
self.is_brought_forward: bool = False self.is_brought_forward: bool = False
@ -56,8 +54,6 @@ class ReportEntry:
"""Whether this is the total entry.""" """Whether this is the total entry."""
self.date: date | None = None self.date: date | None = None
"""The date.""" """The date."""
self.account: Account | None = None
"""The account."""
self.summary: str | None = None self.summary: str | None = None
"""The summary.""" """The summary."""
self.debit: Decimal | None = None self.debit: Decimal | None = None
@ -69,7 +65,6 @@ class ReportEntry:
self.note: str | None = None self.note: str | None = None
"""The note.""" """The note."""
if entry is not None: if entry is not None:
self.entry = entry
self.transaction = entry.transaction self.transaction = entry.transaction
self.date = entry.transaction.date self.date = entry.transaction.date
self.summary = entry.summary self.summary = entry.summary