From bb8c613399f4b29e3ce217535bcea35a23332f19 Mon Sep 17 00:00:00 2001 From: Dan Cojocaru Date: Mon, 3 Jan 2022 03:19:23 +0200 Subject: [PATCH] Added transaction description for received --- server/foxbank_server/apis/transactions.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/server/foxbank_server/apis/transactions.py b/server/foxbank_server/apis/transactions.py index 72e5376..d887ea7 100644 --- a/server/foxbank_server/apis/transactions.py +++ b/server/foxbank_server/apis/transactions.py @@ -87,7 +87,11 @@ class TransactionsList(MethodView): transaction_type='receive_transfer', status='processed', other_party={'iban': account.iban,}, - extra={'currency': account.currency, 'amount': -amount,}, + extra={ + 'currency': account.currency, + 'amount': -amount, + 'description': description, + }, ) insert_transaction(acc.id, reverse_transaction) break