fefe982 / gnucash-xml-split

Split GnuCash XML files into files containing transaction in a certain period (e.g. a year)
3 stars 5 forks source link

add year range and starting balance transaction #1

Open jfcl7 opened 8 years ago

jfcl7 commented 8 years ago

Hi. I really needed GnuCash XML Splitter, so I have taken it and added some additional features. Most importantly are being able to specify a range of years and writing a "starting balance" transaction directly to the output file.

  -h, --help            show this help message and exit
  -i INPUT, --input INPUT
                        input file name
  -o OUTPUT, --output OUTPUT
                        output file name
  -y YEAR, --year YEAR  begin year of transations to extract
  -e END_YEAR, --end-year END_YEAR
                        end year of transactions
  -n, --nozip           do not zip output files
  -z, --zero            zero starting balances in extracted file
  -q, --qif             write starting balances to .qif file

The default behavior has changed. To get the original behavior use: -y year -e year -n -q I'm new to GitHub but I would be glad to contribute this update.

jchowarth commented 6 years ago

Hey,

Did you ever end up contributing this script? Is it available anywhere? JH

jfcl7 commented 6 years ago

Yes, I did. I forked the project at https://github.com/jfcl7/gnucash-xml-split since the original contributor did not respond to my issue.

I think that is the latest version. I'll check to see if I made any further changes.