matthijsmelissen / qif-converter Goto Github PK
View Code? Open in Web Editor NEWConverts CSV files from ING (Netherlands) and BCEE (Luxembourg) into QIF files. Suitable for GnuCash.
License: Creative Commons Zero v1.0 Universal
Converts CSV files from ING (Netherlands) and BCEE (Luxembourg) into QIF files. Suitable for GnuCash.
License: Creative Commons Zero v1.0 Universal
I experienced some trouble with the seb setup:
I downloaded an xlsx file from SEB, which I opened in LibreOffice.
From here, I exported the csv file.
There was some confusion in the formatting of the xlsx file, which caused some amounts to be typed as: 3,342.00
When the script replaces all commas with dots, the amount turned into 3.342.00, which the script interpreted as 3
After some careful formatting of the cells in LibreOffice, I got around this.
But it might be helpful to have the script catch this incorrect formatting, and it shouldn't be all that difficult.
Hi Matthijs, thanks for saving the time of not having to re-invent the wheel. I audited the source code before use, and found some room for improvements:
Line 5 in 49ee9da
=
should have been a ==
:Line 9 in 49ee9da
The following are not directly accessible through the UI, but they would be broken anyway due to the following issues:
$row
and $fields
are not defined. You should remove $
and prepend var fields = {};
:Lines 132 to 138 in 49ee9da
str_replace
, which replaces all occurrences. The .replace
function in JavaScript only replaces the first occurrence. Use .replace
with a regular expression and the g
flag to replace all occurrences, e.g. by using .replace(/\0/g, '')
, .replace(/\xA/g, '')
, .replace(/ /g, '')
, etc. :Lines 80 to 96 in 49ee9da
It would be cool if we could run the conversion locally in the browser, so users of this tool don't need to trust the server on which it is hosted with their financial data. Therefore, it would be nice if we could create a JavaScript version of the tool.
The $error variable is not initalized in convert.php.
This causes an error message when $error is emtpy, and this message made it into my .qif files.
Initializing $error fixed this.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.