Commit 0c0d5ae6 authored by Quentin Defenouillere's avatar Quentin Defenouillere Committed by Romain Bignon

[bred] Added regex for untyped transactions to fix rdate

My recent commit 2aacd2bf fixed rdates from transaction labels for
type_card and type_withdrawal, however some untyped transactions may
also contain dates in their labels and their rdate must be fixed too.

Closes: 6085@zendesk
parent 7e9b2c2e
Pipeline #1675 failed with stages
in 2 minutes and 5 seconds
......@@ -48,6 +48,8 @@ class Transaction(FrenchTransaction):
(re.compile(u'^(Cotisation|Intérêts) (?P<text>.*)'), FrenchTransaction.TYPE_BANK),
(re.compile(u'^(Remise Chèque|Remise de chèque)\s*(?P<text>.*)'), FrenchTransaction.TYPE_DEPOSIT),
(re.compile('^Versement (?P<text>.*)'), FrenchTransaction.TYPE_DEPOSIT),
(re.compile('^(?P<text>.*)LE (?P<dd>\d{2})/(?P<mm>\d{2})/(?P<yy>\d{2})\s*(?P<text2>.*)'),
FrenchTransaction.TYPE_UNKNOWN),
]
......
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