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")
|
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]:
|
||||||
|
Loading…
Reference in New Issue
Block a user