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:
parent
f0d1cae32d
commit
dee4f5e83f
@ -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]:
|
||||
|
Loading…
Reference in New Issue
Block a user