From dee4f5e83fc5ab24a6161333a9267a092f895d38 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:38:02 +0800 Subject: [PATCH] Renamed the "balance" parameter to "value" in the setter of the "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 365d1ac..57022f0 100644 --- a/src/accounting/models.py +++ b/src/accounting/models.py @@ -788,13 +788,13 @@ class JournalEntryLineItem(db.Model): return getattr(self, "__balance") @balance.setter - def balance(self, balance: Decimal) -> None: + def balance(self, value: Decimal) -> None: """Sets the net balance. - :param balance: The net balance. + :param value: The net balance. :return: None. """ - setattr(self, "__balance", balance) + setattr(self, "__balance", value) @property def offsets(self) -> list[t.Self]: