Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
thalia
concrexit
Commits
26b9578e
Verified
Commit
26b9578e
authored
Jun 19, 2019
by
Sébastiaan Versteeg
Browse files
Sync mandate no to conscribo
parent
f787ab67
Changes
1
Hide whitespace changes
Inline
Side-by-side
website/members/management/commands/conscribosync.py
View file @
26b9578e
...
...
@@ -47,12 +47,14 @@ class Command(BaseCommand):
if
member
.
bank_accounts
.
exists
():
account
=
member
.
bank_accounts
.
last
()
mandate_no
=
account
.
mandate_no
bank_account
=
{
'name'
:
account
.
name
,
'bic'
:
account
.
bic
or
''
,
'iban'
:
account
.
iban
,
}
else
:
mandate_no
=
''
bank_account
=
{
'name'
:
''
,
'bic'
:
''
,
...
...
@@ -72,6 +74,7 @@ class Command(BaseCommand):
'plaats'
:
profile
.
address_city
,
'land'
:
profile
.
get_address_country_display
(),
'bankrekeningnummer'
:
bank_account
,
'machtigingskenmerk'
:
mandate_no
}
replace_commands
.
append
(
ApiCommand
(
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment