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:
parent
914ff92e0f
commit
1bb1e03c08
@ -729,13 +729,13 @@ class JournalEntryLineItem(db.Model):
|
|||||||
return getattr(self, "__debit")
|
return getattr(self, "__debit")
|
||||||
|
|
||||||
@debit.setter
|
@debit.setter
|
||||||
def debit(self, debit: Decimal | None) -> None:
|
def debit(self, value: Decimal | None) -> None:
|
||||||
"""Sets the debit amount.
|
"""Sets the debit amount.
|
||||||
|
|
||||||
:param debit: The debit amount.
|
:param value: The debit amount.
|
||||||
:return: None.
|
:return: None.
|
||||||
"""
|
"""
|
||||||
setattr(self, "__debit", debit)
|
setattr(self, "__debit", value)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def credit(self) -> Decimal | None:
|
def credit(self) -> Decimal | None:
|
||||||
|
Loading…
Reference in New Issue
Block a user