Add missing parenthesis.

This commit is contained in:
Albert Cervera i Areny 2023-03-21 23:35:26 +01:00
parent bc9494bea6
commit 9e515848a4
1 changed files with 1 additions and 1 deletions

View File

@ -174,7 +174,7 @@ with Transaction().start(dbname, 1, context=context):
cursor.execute(query)
# Ensure that all bank_account_number has an bank_account. For that we will clear sepa mandates leaving them without account_number.
query = 'UPDATE account_payment_sepa_mandate SET account_number = NULL WHERE account_number IN (SELECT id FROM bank_account_number WHERE account NOT IN (SELECT id FROM bank_account)'
query = 'UPDATE account_payment_sepa_mandate SET account_number = NULL WHERE account_number IN (SELECT id FROM bank_account_number WHERE account NOT IN (SELECT id FROM bank_account))'
cursor.execute(query)
query = 'delete from bank_account_number where account not in (select id from bank_account)'