Renamed the "credit" parameter to "value" in the setter of the "credit" pseudo property of the JournalEntryLineItem data model, for consistency.
This commit is contained in:
parent
1bb1e03c08
commit
5dc71697b3
@ -748,13 +748,13 @@ class JournalEntryLineItem(db.Model):
|
|||||||
return getattr(self, "__credit")
|
return getattr(self, "__credit")
|
||||||
|
|
||||||
@credit.setter
|
@credit.setter
|
||||||
def credit(self, credit: Decimal | None) -> None:
|
def credit(self, value: Decimal | None) -> None:
|
||||||
"""Sets the credit amount.
|
"""Sets the credit amount.
|
||||||
|
|
||||||
:param credit: The credit amount.
|
:param value: The credit amount.
|
||||||
:return: None.
|
:return: None.
|
||||||
"""
|
"""
|
||||||
setattr(self, "__credit", credit)
|
setattr(self, "__credit", value)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def net_balance(self) -> Decimal:
|
def net_balance(self) -> Decimal:
|
||||||
|
Loading…
Reference in New Issue
Block a user