Sync mandate no to conscribo

parent f787ab67
...@@ -47,12 +47,14 @@ class Command(BaseCommand): ...@@ -47,12 +47,14 @@ class Command(BaseCommand):
if member.bank_accounts.exists(): if member.bank_accounts.exists():
account = member.bank_accounts.last() account = member.bank_accounts.last()
mandate_no = account.mandate_no
bank_account = { bank_account = {
'name': account.name, 'name': account.name,
'bic': account.bic or '', 'bic': account.bic or '',
'iban': account.iban, 'iban': account.iban,
} }
else: else:
mandate_no = ''
bank_account = { bank_account = {
'name': '', 'name': '',
'bic': '', 'bic': '',
...@@ -72,6 +74,7 @@ class Command(BaseCommand): ...@@ -72,6 +74,7 @@ class Command(BaseCommand):
'plaats': profile.address_city, 'plaats': profile.address_city,
'land': profile.get_address_country_display(), 'land': profile.get_address_country_display(),
'bankrekeningnummer': bank_account, 'bankrekeningnummer': bank_account,
'machtigingskenmerk': mandate_no
} }
replace_commands.append(ApiCommand( replace_commands.append(ApiCommand(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment