-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for LedgerBalance. Better data type conversion. Unit Tests #4
Conversation
DashNY
commented
Aug 30, 2019
•
edited
Loading
edited
- Added support for LEDGERBAL tag
- Refactored some logic for better type conversion
- Refactored the datetime parsing, made it clearer. Let me know what you think.
- Added unit tests
30bf1f4
to
3d009b7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your PR Alec. Well done. We will need to work on some more tests, now that you add them....:):)
One little thing I would like you to fix. See my notes on ConvertQfxType
method.
I also noticed a problem in my code. Some .qfx or .qbo file have different type of transactions but same transaction properties as we have (i.e. investment transaction 'INVTRAN' with nested 'FITID'), this will return a type of PropertyTransaction
but the cycle has a null _currentTransaction
which throws. We need to check to make sure currentTransaction
is not null before calling SetValue()
. I will fix it as soon as I have a little time.
Thank you again!
3d009b7
to
b9a61b3
Compare
I'm wondering if there is a way to make it run tests as part of each PR. Any idea? |
Yes, with actions, but I have to set it up. This in my future projects.
…On Wed, Sep 4, 2019, 7:27 PM DashNY ***@***.***> wrote:
I'm wondering if there is a way to make it run tests as part of each PR.
Any idea?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#4?email_source=notifications&email_token=AC2HO6XXUGEUBMS3KGY5EH3QIBVCJA5CNFSM4ISRFO22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD55TPQI#issuecomment-528168897>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AC2HO6WVM5DHHTTG5K7CAZTQIBVCJANCNFSM4ISRFO2Q>
.
|
Made the changes you requested. When you have a moment, please merge the PR and publish a nuget. Not for this PR, but perhaps to improve/unclutter the overall parsing logic, there are parsers out there. The industry standard is ANTLR but it's super bulky (written in Java etc) |
On another note, I don't have any examples of those .qfx / .ofx files. |
Thank you Alec, I will work on the code during the weekend, merge and push to Nuget. |