From e8ed36bcb830f59b63db37628aae500ff4f84451 Mon Sep 17 00:00:00 2001 From: Lucas Ficheux Date: Wed, 31 Jul 2019 11:20:13 +0200 Subject: [PATCH] [capabilities.bank] Add field 'gross_amount' to Transaction Added field 'gross_amount' to the Transaction class to store the value of the transaction without the commission. Closes : 12239@zendesk --- weboob/capabilities/bank.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/weboob/capabilities/bank.py b/weboob/capabilities/bank.py index 38c5ccfa41..1a5d3ce0a7 100644 --- a/weboob/capabilities/bank.py +++ b/weboob/capabilities/bank.py @@ -417,10 +417,11 @@ class Transaction(BaseObject): raw = StringField('Raw label of the transaction') category = StringField('Category of the transaction') label = StringField('Pretty label') - amount = DecimalField('Amount of the transaction') + amount = DecimalField('Net amount of the transaction, used to compute account balance') card = StringField('Card number (if any)') commission = DecimalField('Commission part on the transaction (in account currency)') + gross_amount = DecimalField('Amount of the transaction without the commission') # International original_amount = DecimalField('Original amount (in another currency)') -- GitLab