ihatemoney icon indicating copy to clipboard operation
ihatemoney copied to clipboard

Cospend CSV bills import not working anymore

Open AlexanderSch90 opened this issue 3 years ago • 12 comments

see: #977 support for cospend has been merged in master recently (CSV bills import (cospend compatible) #951) If I select the CSV export from Cospent, the error is: Unsupported file type. i have tried several csv files. None of them worked. I can upload an example if needed if the issue is not self-reproducible.

AlexanderSch90 avatar Jan 14 '22 14:01 AlexanderSch90

Ah ! didn't saw your issue, I'll check that

youegraillot avatar Jan 14 '22 15:01 youegraillot

Would you be kind enough to share your csv so I can debug this later ?

youegraillot avatar Jan 14 '22 15:01 youegraillot

yes no Problem spotify_2022-01-13.csv

AlexanderSch90 avatar Jan 14 '22 15:01 AlexanderSch90

@youegraillot did you had time to have on look at them problems here?

almet avatar Mar 07 '22 16:03 almet

If I try to import a CSV exported from Cospend, it fails telling me it's "Unable to parse CSV".

qoheniac avatar Oct 27 '22 11:10 qoheniac

Yes, this is not supported for now. Sorry for the inconvenience.

almet avatar Nov 07 '22 23:11 almet

Hi @qoheniac and @AlexanderSch90, U just found some time to work on this. It seems that the exported files from Cospend changed their format in 1.3.8 (see https://github.com/julien-nc/cospend-nc/blob/master/CHANGELOG.md#1318--2021-09-14)

From what I see from the file @AlexanderSch90 sent me, it seems that we have two different information in the same csv file, and our import mechanism needs to be updated.

almet avatar Dec 11 '22 13:12 almet

New format is not documented, but the code might help.

almet avatar Dec 11 '22 14:12 almet

So it exports different information in the same file :

  1. members: name,weight,active,color
  2. bills: what,amount,date,timestamp,payer_name,payer_weight,payer_active,owers,repeat,repeatfreq,repeatallactive,repeatuntil,categoryid,paymentmode,paymentmodeid,comment
  3. categories: categoryname,categoryid,icon,color
  4. payment modes paymentmodename,paymentmodeid,icon,color
  5. currencies currencyname,exchange_rate

almet avatar Dec 11 '22 14:12 almet

Can I work on this?

mihir1739 avatar Oct 21 '23 13:10 mihir1739

Can I work on this?

Hi, thanks for proposing your help. In general open source projects work this way : you work on your side until you propose something to review to the project. At least, that's how we handle contributions here. So : don't hesitate to work on this.

almet avatar Oct 23 '23 13:10 almet

Hi, I will began working on this on my side.

Travis544 avatar Oct 31 '23 05:10 Travis544