From f0d1cae32d67d5b3e2acbc420d720d5617c742ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Wed, 26 Apr 2023 13:37:47 +0800 Subject: [PATCH] Renamed the "net_balance" parameter to "value" in the setter of the "net_balance" pseudo property of the JournalEntryLineItem data model, for consistency. --- src/accounting/models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/accounting/models.py b/src/accounting/models.py index 4ba2419..365d1ac 100644 --- a/src/accounting/models.py +++ b/src/accounting/models.py @@ -769,13 +769,13 @@ class JournalEntryLineItem(db.Model): return getattr(self, "__net_balance") @net_balance.setter - def net_balance(self, net_balance: Decimal) -> None: + def net_balance(self, value: Decimal) -> None: """Sets the net balance. - :param net_balance: The net balance. + :param value: The net balance. :return: None. """ - setattr(self, "__net_balance", net_balance) + setattr(self, "__net_balance", value) @property def balance(self) -> Decimal: