reckon
reckon copied to clipboard
Add support for multiple money columns
This is useful in cases where there are two money columns and this can't easily be automatically detected.
- Adds command line option for
--money-columns
- Updates parser to deal with 1-2 specified money columns
- Keep current money_column option for backwards compatibility
- Adds integration test case for this
Things to note:
-
Tested with
./spec/integration/test.sh spec/integration/two_money_columns_manual
-
Running
> reckon -f spec/integration/two_money_columns_manual/input.csv --unattended --account Assets:Bank:Checking
results inUsing column 3 as the money column. Use --money-colum to specify a different one.
. Possibly due to negative money score (?). Same with--ignore-column 5
-
I'm not a Ruby dev so code might be unidiomatic in some way.