Renamed the "debit" parameter to "value" in the setter of the "debit" pseudo property of the JournalEntryLineItem data model, for consistency.

This commit is contained in:
依瑪貓 2023-04-26 13:37:09 +08:00
parent 914ff92e0f
commit 1bb1e03c08

View File

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