Commit a1d5a221 authored by Sylvie Ye's avatar Sylvie Ye Committed by Romain Bignon

[bnp] transfer fees are not always available

set default value Decimal(0) for transfer fees
parent c1dd5472
......@@ -442,7 +442,7 @@ class ValidateTransferPage(BNPPage):
transfer.recipient_id =
transfer.exec_date = parse_french_date(transfer_data['dateExecution']).date()
transfer.fees = Decimal(transfer_data['montantFrais'])
transfer.fees = Decimal(transfer_data.get('montantFrais', '0'))
transfer.label = transfer_data['motifVirement']
transfer.account_label = account.label
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