[boobank 1.3] Banque Postale: No data in rdate field
Hi, I can't get rdata data of my account at La Banque Postale.
boobank -q -f csv history "xxxxxx@bp" -s rdate,type,raw,label,amount
Not available;2;PRELEVEMENT DE xxxxx REF : 10/10 xxxx 10/10 GRE IDENT : FRxxxxxxx;PRELEVEMENT DE xxxxx REF : 10/10 xxxxE 10/10 GRE IDENT : FRxxxxxxx;-22.00
Not available;1;VIREMENT DE M xxxxxx PRELEVEMENTS REFERENCE : yyyyyyyyy;VIREMENT DE M xxxxxxx PRELEVEMENTS REFERENCE : yyyyyyyyy;60.00
boobank -q -f csv history "xxxxxxxxxxxx@bp"
@bp;Not loaded;2018-08-13;Not loaded;Not loaded;2;PRELEVEMENT DE xxx REF : 10/10 COTISATION SYNDICALE 10/10 GRE IDENT : FRxxxxxxx;PRELEVEMENT DE;PRELEVEMENT DE xxxx REF : 10/10 COTISATION SYNDICALE 10/10 GRE IDENT : FRxxxxxxx;-22.00;Not loaded;Not loaded;Not loaded;Not loaded;Not loaded;
I use Skrooge and this field is necessary. Why this value isn't loaded ?
Added banking label
rdate was fetched from a column on the bp site, but this info was most often wrong. ae266b89 fixed it by parsing the rdate from the transaction label on the bp site (which contains the most accurate info). However, sometimes it might be missing from the label?
However, sometimes it might be missing from the label?
It seems like ! Why don't use the date field ?
It's not that simple because it's out of weboob's scope IMHO.
A module should return the most accurate information possible. If information is missing from the banking site, the module should not fear to state clearly there is no info (
NotAvailable), because in that case, "no info" is the most accurate data. Taking the
rdateis a choice the module shouldn't make, because other people might have different needs. The module should report that info is missing, and the app consuming the bank statement should make an informed choice to fill the blanks or handle it differently, that entirely depends on the purpose of the use. A legal accounting app might not make the same choice as an end-user budgeting app. But in order to make different choices, the app must first be aware of the missing info.
Quite often, bank statements are unreliable, for example due to missing info, because bank sites themselves are unreliable, this is a fact. So IMHO an app like skrooge handling a bank statement should get used to it and accommodate this situation by supporting missing fields. Sometimes it's even worse, banks can change the label of a transaction later. A weboob module really can't do anything against that (it just takes a snapshot of data, it doesn't do
diffbetween 2 states), that's up to the client app (like skrooge) to acknowledge bank statements are unreliable and react accordingly by applying some heuristics, be tolerant, etc.
If skrooge cannot accomodate this (but I really think it should), you could write a wrapper script that copies the