Bug 324634 - Weboob import is broken
Summary: Weboob import is broken
Status: RESOLVED FIXED
Alias: None
Product: skrooge
Classification: Applications
Component: general (other bugs)
Version First Reported In: 1.7.4
Platform: Debian testing Linux
: NOR major
Target Milestone: 25.1.0
Assignee: Guillaume DE BURE
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-08 01:45 UTC by bugs.kde.org-c69
Modified: 2013-09-08 08:10 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bugs.kde.org-c69 2013-09-08 01:45:47 UTC
In version 0.g, weboob added a new vdate field to the csv output of boobank. This break the import feature in skrooge.

Here is an example output of boobank:
$ boobank history XXXX@XXXX -fcsv
id;date;rdate;vdate;type;raw;category;label;amount
XXXX@XXXX;2013-09-06;2013-09-05;Not available;7;FACTURE CARTE DU 050913 XXXX;FACTURE CARTE;XXXX;-47.33

Reproducible: Always

Steps to Reproduce:
1. Use automated import from weboob
Actual Results:  
Imported operations have messed-up details. Only the date is correct. Amount is always 0.

Expected Results:  
Correct data is imported

I fixed it locally with this patch:

--- skrooge-1.7.4.orig/plugins/import/skrooge_import_backend/weboob.backend
+++ skrooge-1.7.4/plugins/import/skrooge_import_backend/weboob.backend
@@ -35,4 +35,4 @@ getaccountbalance=[^;]*;[^;]*;[^;]*;([^;
 getoperations=boobank -q -f csv -n %2 history "%1"
 
 #The csv columns. See CSV import settings for more detail.
-csvcolumns=||date|mode|comment||payee|amount
+csvcolumns=||date||mode|comment||payee|amount
Comment 1 Stephane MANKOWSKI 2013-09-08 08:10:53 UTC
This problem is already corrected in trunk.
I created a new backend named "weboob0g" to keep the compatibility for user using old version of weboob.