Bug 324634

Summary: Weboob import is broken
Product: [Applications] skrooge Reporter: bugs.kde.org-c69
Component: generalAssignee: Guillaume DE BURE <guillaume.debure>
Status: RESOLVED FIXED    
Severity: major CC: stephane
Priority: NOR    
Version First Reported In: 1.7.4   
Target Milestone: 25.1.0   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

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.