Renamed the "is_pay_off_needed" column of the Account data model to "is_offset_needed", and the "pay_off_target_id" column of the JournalEntry data model to "original_id".

This commit is contained in:
2023-03-09 17:16:05 +08:00
parent e37f6792c9
commit 5132141c68
8 changed files with 29 additions and 29 deletions

View File

@ -91,8 +91,8 @@ class EntryCollector:
Account.title_l10n.contains(k),
code.contains(k),
Account.id.in_(select_l10n)]
if k in gettext("Pay-off needed"):
conditions.append(Account.is_pay_off_needed)
if k in gettext("Need offset"):
conditions.append(Account.is_offset_needed)
return sa.select(Account.id).filter(sa.or_(*conditions))
@staticmethod