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:
依瑪貓 2023-04-26 13:37:33 +08:00
parent 1bb1e03c08
commit 5dc71697b3

View File

@ -748,13 +748,13 @@ class JournalEntryLineItem(db.Model):
return getattr(self, "__credit")
@credit.setter
def credit(self, credit: Decimal | None) -> None:
def credit(self, value: Decimal | None) -> None:
"""Sets the credit amount.
:param credit: The credit amount.
:param value: The credit amount.
:return: None.
"""
setattr(self, "__credit", credit)
setattr(self, "__credit", value)
@property
def net_balance(self) -> Decimal: