Renamed the configuration DEFAULT_CURRENCY, DEFAULT_IE_ACCOUNT, and RECURRING to "ACCOUNTING_DEFAULT_CURRENCY", "ACCOUNTING_DEFAULT_IE_ACCOUNT", and "ACCOUNTING_RECURRING", respectively.
This commit is contained in:
@ -280,11 +280,11 @@ class DescriptionEditor:
|
||||
|
||||
:return: None.
|
||||
"""
|
||||
if "RECURRING" not in current_app.config:
|
||||
if "ACCOUNTING_RECURRING" not in current_app.config:
|
||||
return
|
||||
data: list[tuple[t.Literal["debit", "credit"], str, str, str]] \
|
||||
= [x.split("|")
|
||||
for x in current_app.config["RECURRING"].split(",")]
|
||||
for x in current_app.config["ACCOUNTING_RECURRING"].split(",")]
|
||||
debit_credit_dict: dict[t.Literal["debit", "credit"],
|
||||
DescriptionDebitCredit] \
|
||||
= {x.debit_credit: x for x in {self.debit, self.credit}}
|
||||
|
Reference in New Issue
Block a user