From c47548caa2248c667b93f1cb34699b214d0e3f39 Mon Sep 17 00:00:00 2001 From: Laurent Bachelier Date: Mon, 29 Jul 2013 14:53:20 +0200 Subject: [PATCH] CapBank: More help for date fields, introduce vdate --- weboob/capabilities/bank.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/weboob/capabilities/bank.py b/weboob/capabilities/bank.py index 6f8bec57..37904b5d 100644 --- a/weboob/capabilities/bank.py +++ b/weboob/capabilities/bank.py @@ -148,13 +148,14 @@ class Transaction(CapBaseObject): TYPE_LOAN_PAYMENT = 8 TYPE_BANK = 9 - date = DateField('Debit date') - rdate = DateField('Real date, when the payment has been made') + date = DateField('Debit date on the bank statement') + rdate = DateField('Real date, when the payment has been made; usually extracted from the label or from credit card info') + vdate = DateField('Validity date, or accounting date; usually for professional accounts') type = IntField('Type of transaction, use TYPE_* constants', default=TYPE_UNKNOWN) raw = StringField('Raw label of the transaction') - category = StringField('Category of transaction') + category = StringField('Category of the transaction') label = StringField('Pretty label') - amount = DecimalField('Amount of transaction') + amount = DecimalField('Amount of the transaction') def __repr__(self): label = self.label.encode('utf-8') if self.label else self.label