Split amounts should use '$' for their line code #45
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I'm trying to generate QIF files to import into GnuCash and found two issues that made this process a little bumpy. This is one of them.
With the current QIF formatting of splits, GnuCash will ignore the splits. Comparing the files that qiffen generates with other example files I found on the internet where GnuCash imports splits correctly, I noticed that qiffen writes split amounts using a line code of
T
, which is the line code for the amount of the overall transaction. Using a$
line code instead makes it work in GnuCash.Judging by e.g. https://en.wikipedia.org/wiki/Quicken_Interchange_Format, I think GnuCash is in the right here, and qiffen should in fact be using a line code of
$
instead ofT
.Hence this PR! :) Let me know if there's anything else you'd like me to do!