Commit 6dbeaca2 authored by Damien Espitallier's avatar Damien Espitallier

Add new "checked" field for boobank transactions

parent 540bd708
Pipeline #958 failed with stages
in 0 seconds
......@@ -33,7 +33,7 @@ from weboob.browser.filters.standard import (
Regexp, Date, AsyncLoad, Async, Eval, RegexpError, Env,
Currency as CleanCurrency,
)
from weboob.browser.filters.html import Attr, Link, TableCell
from weboob.browser.filters.html import Attr, Link, TableCell, HasElement
from weboob.capabilities.bank import Account, Investment, Recipient, Transfer, AccountNotFound, AddRecipientError
from weboob.capabilities.base import NotAvailable, empty
from weboob.capabilities.profile import Person
......@@ -329,6 +329,7 @@ class HistoryPage(LoggedPage, HTMLPage):
obj_date = Date(Attr('.//time', 'datetime'))
obj_amount = CleanDecimal('.//div[has-class("list__movement__line--amount")]', replace_dots=True)
obj_category = CleanText('.//div[has-class("category")]')
obj_checked = HasElement('.//span[has-class("checking-btn--checked")]')
def obj_id(self):
return Attr('.', 'data-id', default=NotAvailable)(self) or Attr('.', 'data-custom-id', default=NotAvailable)(self)
......
......@@ -29,7 +29,7 @@ from weboob.tools.capabilities.bank.iban import is_iban_valid
from weboob.tools.compat import unicode
from .base import BaseObject, Field, StringField, DecimalField, IntField, \
UserError, Currency, NotAvailable
BoolField, UserError, Currency, NotAvailable
from .date import DateField
from .collection import CapCollection
......@@ -303,6 +303,8 @@ class Transaction(BaseObject):
card = StringField('Card number (if any)')
commission = DecimalField('Commission part on the transaction (in account currency)')
checked = BoolField('Transation validity check')
# International
original_amount = DecimalField('Original amount (in another currency)')
original_currency = StringField('Currency of the original amount')
......
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