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") return getattr(self, "__balance")
@balance.setter @balance.setter
def balance(self, balance: Decimal) -> None: def balance(self, value: Decimal) -> None:
"""Sets the net balance. """Sets the net balance.
:param balance: The net balance. :param value: The net balance.
:return: None. :return: None.
""" """
setattr(self, "__balance", balance) setattr(self, "__balance", value)
@property @property
def offsets(self) -> list[t.Self]: def offsets(self) -> list[t.Self]: