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
1266b9da
Commit
1266b9da
authored
Jul 01, 2019
by
Jelle Besseling
Browse files
Merge branch 'feature/conscribo-mandate-sync' into 'master'
Sync mandate no to conscribo Closes
#888
See merge request
!1292
parents
1ce6b0fc
26b9578e
Changes
1
Hide whitespace changes
Inline
Side-by-side
website/members/management/commands/conscribosync.py
View file @
1266b9da
...
...
@@ -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