Renamed the "isOriginalEntry", "is-original-entry", "is_original_entry", and "isOriginalEntry()" methods and properties of journal entries to "isNeedOffset", "is-need-offset", "is_need_offset", and "isNeedOffset()", to be clear and understandable.

This commit is contained in:
2023-03-18 18:55:31 +08:00
parent a643d9e811
commit 34f63c1cdf
9 changed files with 19 additions and 19 deletions

View File

@ -681,10 +681,10 @@ class JournalEntry(db.Model):
return self.amount if self.is_debit else None
@property
def is_original_entry(self) -> bool:
"""Returns whether the entry is an original entry.
def is_need_offset(self) -> bool:
"""Returns whether the entry needs offset.
:return: True if the entry is an original entry, or False otherwise.
:return: True if the entry needs offset, or False otherwise.
"""
if not self.account.is_offset_needed:
return False