Renamed the "balance" parameter to "value" in the setter of the "balance" pseudo property of the JournalEntryLineItem data model, for consistency.

This commit is contained in:
依瑪貓 2023-04-26 13:38:02 +08:00
parent f0d1cae32d
commit dee4f5e83f

View File

@ -788,13 +788,13 @@ class JournalEntryLineItem(db.Model):
return getattr(self, "__balance")
@balance.setter
def balance(self, balance: Decimal) -> None:
def balance(self, value: Decimal) -> None:
"""Sets the net balance.
:param balance: The net balance.
:param value: The net balance.
:return: None.
"""
setattr(self, "__balance", balance)
setattr(self, "__balance", value)
@property
def offsets(self) -> list[t.Self]: