Skip to content

add csv parsing#10

Merged
olf42 merged 2 commits intowestnetz:developfrom
aparcar:csv
Oct 16, 2019
Merged

add csv parsing#10
olf42 merged 2 commits intowestnetz:developfrom
aparcar:csv

Conversation

@aparcar
Copy link
Collaborator

@aparcar aparcar commented Oct 3, 2019

first step to compare giro transactions with user payments

currently parses only GLS files and prints them

a@tb:~/src/rechnung$ rechnung print-csv 2019 09
Parsing CSV files for 201909
Found /home/a/src/rechnung/csv/201909-gls.csv
2019-09-30 00:00:00: D 60.0€ Maxxxx
2019-09-30 00:00:00: D 20.0€ PExxxx
2019-09-30 00:00:00: B 684.25€ HLxxxx
2019-09-24 00:00:00: D 25.0€ Raxxxx
2019-09-23 00:00:00: Ü 337.5€ Vaxxxx
2019-09-20 00:00:00: D 20.0€ Haxxxx
2019-09-17 00:00:00: D 100.0€ Toxxxx
2019-09-16 00:00:00: D 50.0€ Chxxxx
2019-09-16 00:00:00: D 20.0€ Soxxxx
2019-09-16 00:00:00: Ü 100.0€ Lixxxx
2019-09-13 00:00:00: Ü 75.0€ THxxxx
2019-09-12 00:00:00: D 60.0€ Klxxxx
2019-09-09 00:00:00: D 20.0€ THxxxx
2019-09-05 00:00:00: D 200.0€ Scxxxx
2019-09-04 00:00:00: Ü 20.0€ Lexxxx
2019-09-04 00:00:00: D 20.0€ Raxxxx
2019-09-04 00:00:00: D 20.0€ Fexxxx
2019-09-04 00:00:00: D 20.0€ Chxxxx
2019-09-04 00:00:00: D 20.0€ Laxxxx
2019-09-03 00:00:00: D 20.0€ Joxxxx
2019-09-03 00:00:00: D 20.0€ Anxxxx
2019-09-03 00:00:00: D 20.0€ Lexxxx
2019-09-03 00:00:00: D 20.0€ Roxxxx
2019-09-03 00:00:00: Ü 20.0€ ROxxxx
2019-09-03 00:00:00: D 20.0€ Isxxxx
2019-09-03 00:00:00: D 50.0€ Toxxxx
2019-09-02 00:00:00: D 20.0€ PExxxx
2019-09-02 00:00:00: D 100.0€ Moxxxx
2019-09-02 00:00:00: D 100.0€ Koxxxx
2019-09-02 00:00:00: D 20.0€ Joxxxx
2019-09-02 00:00:00: D 55.0€ Koxxxx

Signed-off-by: Paul Spooren mail@aparcar.org

currently parses only GLS files and prints them

a@tb:~/src/rechnung$ rechnung print-csv 2019 09
Parsing CSV files for 201909
Found /home/a/src/rechnung/csv/201909-gls.csv
2019-09-30 00:00:00: D 60.0€ Maxxxx
2019-09-30 00:00:00: D 20.0€ PExxxx
2019-09-30 00:00:00: B 684.25€ HLxxxx
2019-09-24 00:00:00: D 25.0€ Raxxxx
2019-09-23 00:00:00: Ü 337.5€ Vaxxxx
2019-09-20 00:00:00: D 20.0€ Haxxxx
2019-09-17 00:00:00: D 100.0€ Toxxxx
2019-09-16 00:00:00: D 50.0€ Chxxxx
2019-09-16 00:00:00: D 20.0€ Soxxxx
2019-09-16 00:00:00: Ü 100.0€ Lixxxx
2019-09-13 00:00:00: Ü 75.0€ THxxxx
2019-09-12 00:00:00: D 60.0€ Klxxxx
2019-09-09 00:00:00: D 20.0€ THxxxx
2019-09-05 00:00:00: D 200.0€ Scxxxx
2019-09-04 00:00:00: Ü 20.0€ Lexxxx
2019-09-04 00:00:00: D 20.0€ Raxxxx
2019-09-04 00:00:00: D 20.0€ Fexxxx
2019-09-04 00:00:00: D 20.0€ Chxxxx
2019-09-04 00:00:00: D 20.0€ Laxxxx
2019-09-03 00:00:00: D 20.0€ Joxxxx
2019-09-03 00:00:00: D 20.0€ Anxxxx
2019-09-03 00:00:00: D 20.0€ Lexxxx
2019-09-03 00:00:00: D 20.0€ Roxxxx
2019-09-03 00:00:00: Ü 20.0€ ROxxxx
2019-09-03 00:00:00: D 20.0€ Isxxxx
2019-09-03 00:00:00: D 50.0€ Toxxxx
2019-09-02 00:00:00: D 20.0€ PExxxx
2019-09-02 00:00:00: D 100.0€ Moxxxx
2019-09-02 00:00:00: D 100.0€ Koxxxx
2019-09-02 00:00:00: D 20.0€ Joxxxx
2019-09-02 00:00:00: D 55.0€ Koxxxx

Signed-off-by: Paul Spooren <mail@aparcar.org>
@aparcar aparcar marked this pull request as ready for review October 12, 2019 01:07
@aparcar
Copy link
Collaborator Author

aparcar commented Oct 15, 2019

This needs a more modular refactor to support other banks in a clean way as well...

@olf42 olf42 added this to the Version 1.0 milestone Oct 15, 2019
Copy link
Member

@olf42 olf42 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice PoC. Will include it, but it we will require some effort to make it more flexible.

@olf42 olf42 merged commit bdd7419 into westnetz:develop Oct 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants