rock_books 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitattributes +1 -0
- data/README.md +3 -13
- data/RELEASE_NOTES.md +15 -1
- data/lib/rock_books/cmd_line/command_line_interface.rb +19 -9
- data/lib/rock_books/cmd_line/main.rb +9 -2
- data/lib/rock_books/documents/book_set.rb +20 -5
- data/lib/rock_books/documents/chart_of_accounts.rb +19 -4
- data/lib/rock_books/documents/journal.rb +29 -7
- data/lib/rock_books/documents/journal_entry_builder.rb +23 -14
- data/lib/rock_books/errors/account_not_found_error.rb +9 -8
- data/lib/rock_books/errors/incorrect_sequence_error.rb +21 -0
- data/lib/rock_books/errors/transaction_not_balanced_error.rb +21 -0
- data/lib/rock_books/filters/journal_entry_filters.rb +6 -1
- data/lib/rock_books/helpers/book_set_loader.rb +2 -2
- data/lib/rock_books/helpers/parse_helper.rb +1 -1
- data/lib/rock_books/reports/tx_by_account.rb +1 -1
- data/lib/rock_books/reports/tx_one_account.rb +1 -1
- data/lib/rock_books/types/acct_amount.rb +4 -4
- data/lib/rock_books/types/journal_entry_context.rb +14 -0
- data/lib/rock_books/version.rb +1 -1
- data/sample_data/minimal/rockbooks-inputs/{2017-xyz-chart-of-accounts.rbt → 2017-xyz-chart-of-accounts.txt} +62 -62
- data/sample_data/minimal/rockbooks-inputs/{2017-xyz-checking-journal.rbt → 2017-xyz-checking-journal.txt} +17 -17
- data/sample_data/minimal/rockbooks-inputs/{2017-xyz-general-journal.rbt → 2017-xyz-general-journal.txt} +14 -14
- data/sample_data/minimal/rockbooks-inputs/{2017-xyz-visa-journal.rbt → 2017-xyz-visa-journal.txt} +27 -23
- data/sample_data/minimal/rockbooks-reports/{all_txns_by_acct.html → html/all_txns_by_acct.html} +63 -51
- data/sample_data/minimal/rockbooks-reports/{all_txns_by_amount.html → html/all_txns_by_amount.html} +13 -8
- data/sample_data/minimal/rockbooks-reports/{all_txns_by_date.html → html/all_txns_by_date.html} +13 -8
- data/sample_data/minimal/rockbooks-reports/{balance_sheet.html → html/balance_sheet.html} +6 -6
- data/sample_data/minimal/rockbooks-reports/{ck.hsbc.html → html/ck.hsbc.disb.html} +2 -2
- data/sample_data/minimal/rockbooks-reports/{general.html → html/general.html} +2 -2
- data/sample_data/minimal/rockbooks-reports/{hsbc_visa.html → html/hsbc_visa.html} +8 -4
- data/sample_data/minimal/rockbooks-reports/{income_statement.html → html/income_statement.html} +5 -5
- data/sample_data/minimal/rockbooks-reports/{receipts.html → html/receipts.html} +3 -2
- data/sample_data/minimal/rockbooks-reports/{single-account → html/single-account}/acct_accts.rec.html +2 -2
- data/sample_data/minimal/rockbooks-reports/{single-account → html/single-account}/acct_bank.fees.html +2 -2
- data/sample_data/minimal/rockbooks-reports/{single-account → html/single-account}/acct_books.refs.html +2 -2
- data/sample_data/minimal/rockbooks-reports/{single-account → html/single-account}/acct_cc.hsbc.visa.html +12 -6
- data/sample_data/minimal/rockbooks-reports/{single-account → html/single-account}/acct_cc.proc.html +2 -2
- data/sample_data/minimal/rockbooks-reports/{single-account → html/single-account}/acct_ck.hsbc.html +5 -5
- data/sample_data/minimal/rockbooks-reports/{single-account → html/single-account}/acct_conf.fees.html +2 -2
- data/sample_data/minimal/rockbooks-reports/{single-account → html/single-account}/acct_cowork.fees.html +11 -5
- data/sample_data/minimal/rockbooks-reports/{single-account → html/single-account}/acct_govt.fees.html +2 -2
- data/sample_data/minimal/rockbooks-reports/{single-account → html/single-account}/acct_inet.fees.html +2 -2
- data/sample_data/minimal/rockbooks-reports/{single-account → html/single-account}/acct_insurance.html +2 -2
- data/sample_data/minimal/rockbooks-reports/{single-account → html/single-account}/acct_int.exp.html +2 -2
- data/sample_data/minimal/rockbooks-reports/{single-account → html/single-account}/acct_loan.to.sh.html +2 -2
- data/sample_data/minimal/rockbooks-reports/{single-account → html/single-account}/acct_meals.ent.html +2 -2
- data/sample_data/minimal/rockbooks-reports/{single-account → html/single-account}/acct_misc.exp.html +2 -2
- data/sample_data/minimal/rockbooks-reports/{single-account → html/single-account}/acct_mktng.exp.html +2 -2
- data/sample_data/minimal/rockbooks-reports/{single-account → html/single-account}/acct_own.equity.html +3 -3
- data/sample_data/minimal/rockbooks-reports/{single-account → html/single-account}/acct_paypal.html +2 -2
- data/sample_data/minimal/rockbooks-reports/{single-account → html/single-account}/acct_prof.fees.html +2 -2
- data/sample_data/minimal/rockbooks-reports/{single-account → html/single-account}/acct_repair.maint.html +2 -2
- data/sample_data/minimal/rockbooks-reports/{single-account → html/single-account}/acct_ret.earn.html +2 -2
- data/sample_data/minimal/rockbooks-reports/{single-account → html/single-account}/acct_ship.exp.html +2 -2
- data/sample_data/minimal/rockbooks-reports/{single-account → html/single-account}/acct_sls.cons.html +3 -3
- data/sample_data/minimal/rockbooks-reports/{single-account → html/single-account}/acct_supplies.html +2 -2
- data/sample_data/minimal/rockbooks-reports/{single-account → html/single-account}/acct_sw.exp.html +2 -2
- data/sample_data/minimal/rockbooks-reports/{single-account → html/single-account}/acct_tr.airfare.html +2 -2
- data/sample_data/minimal/rockbooks-reports/{single-account → html/single-account}/acct_tr.autorent.html +2 -2
- data/sample_data/minimal/rockbooks-reports/{single-account → html/single-account}/acct_tr.gas.etc.html +2 -2
- data/sample_data/minimal/rockbooks-reports/{single-account → html/single-account}/acct_tr.govt.html +2 -2
- data/sample_data/minimal/rockbooks-reports/{single-account → html/single-account}/acct_tr.lodging.html +2 -2
- data/sample_data/minimal/rockbooks-reports/{single-account → html/single-account}/acct_tr.m.e.html +2 -2
- data/sample_data/minimal/rockbooks-reports/{single-account → html/single-account}/acct_tr.m.i.html +2 -2
- data/sample_data/minimal/rockbooks-reports/{single-account → html/single-account}/acct_tr.mileage.html +2 -2
- data/sample_data/minimal/rockbooks-reports/{single-account → html/single-account}/acct_tr.misc.html +2 -2
- data/sample_data/minimal/rockbooks-reports/{single-account → html/single-account}/acct_tr.parking.html +2 -2
- data/sample_data/minimal/rockbooks-reports/{single-account → html/single-account}/acct_tr.perdiem.mi.html +2 -2
- data/sample_data/minimal/rockbooks-reports/{single-account → html/single-account}/acct_tr.taxi.html +2 -2
- data/sample_data/minimal/rockbooks-reports/{single-account → html/single-account}/acct_tr.trainfare.html +2 -2
- data/sample_data/minimal/rockbooks-reports/{single-account → html/single-account}/acct_tr.unclass.html +2 -2
- data/sample_data/minimal/rockbooks-reports/pdf/all_txns_by_acct.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/pdf/all_txns_by_amount.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/pdf/all_txns_by_date.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/pdf/balance_sheet.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/pdf/ck.hsbc.disb.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/pdf/general.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/pdf/hsbc_visa.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/pdf/income_statement.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/pdf/receipts.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_accts.rec.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_bank.fees.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_books.refs.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_cc.hsbc.visa.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_cc.proc.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_ck.hsbc.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_conf.fees.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_cowork.fees.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_govt.fees.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_inet.fees.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_insurance.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_int.exp.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_loan.to.sh.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_meals.ent.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_misc.exp.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_mktng.exp.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_own.equity.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_paypal.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_prof.fees.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_repair.maint.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_ret.earn.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_ship.exp.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_sls.cons.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_supplies.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_sw.exp.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_tr.airfare.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_tr.autorent.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_tr.gas.etc.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_tr.govt.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_tr.lodging.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_tr.m.e.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_tr.m.i.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_tr.mileage.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_tr.misc.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_tr.parking.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_tr.perdiem.mi.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_tr.taxi.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_tr.trainfare.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_tr.unclass.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/{all_txns_by_acct.txt → txt/all_txns_by_acct.txt} +61 -49
- data/sample_data/minimal/rockbooks-reports/{all_txns_by_amount.txt → txt/all_txns_by_amount.txt} +11 -6
- data/sample_data/minimal/rockbooks-reports/{all_txns_by_date.txt → txt/all_txns_by_date.txt} +11 -6
- data/sample_data/minimal/rockbooks-reports/{balance_sheet.txt → txt/balance_sheet.txt} +4 -4
- data/sample_data/minimal/rockbooks-reports/{ck.hsbc.txt → txt/ck.hsbc.disb.txt} +0 -0
- data/sample_data/minimal/rockbooks-reports/{general.txt → txt/general.txt} +0 -0
- data/sample_data/minimal/rockbooks-reports/{hsbc_visa.txt → txt/hsbc_visa.txt} +6 -2
- data/sample_data/minimal/rockbooks-reports/{income_statement.txt → txt/income_statement.txt} +3 -3
- data/sample_data/minimal/rockbooks-reports/{receipts.txt → txt/receipts.txt} +1 -0
- data/sample_data/minimal/rockbooks-reports/{single-account → txt/single-account}/acct_accts.rec.txt +0 -0
- data/sample_data/minimal/rockbooks-reports/{single-account → txt/single-account}/acct_bank.fees.txt +0 -0
- data/sample_data/minimal/rockbooks-reports/{single-account → txt/single-account}/acct_books.refs.txt +0 -0
- data/sample_data/minimal/rockbooks-reports/{single-account → txt/single-account}/acct_cc.hsbc.visa.txt +10 -4
- data/sample_data/minimal/rockbooks-reports/{single-account → txt/single-account}/acct_cc.proc.txt +0 -0
- data/sample_data/minimal/rockbooks-reports/{single-account → txt/single-account}/acct_ck.hsbc.txt +3 -3
- data/sample_data/minimal/rockbooks-reports/{single-account → txt/single-account}/acct_conf.fees.txt +0 -0
- data/sample_data/minimal/rockbooks-reports/{single-account → txt/single-account}/acct_cowork.fees.txt +9 -3
- data/sample_data/minimal/rockbooks-reports/{single-account → txt/single-account}/acct_govt.fees.txt +0 -0
- data/sample_data/minimal/rockbooks-reports/{single-account → txt/single-account}/acct_inet.fees.txt +0 -0
- data/sample_data/minimal/rockbooks-reports/{single-account → txt/single-account}/acct_insurance.txt +0 -0
- data/sample_data/minimal/rockbooks-reports/{single-account → txt/single-account}/acct_int.exp.txt +0 -0
- data/sample_data/minimal/rockbooks-reports/{single-account → txt/single-account}/acct_loan.to.sh.txt +0 -0
- data/sample_data/minimal/rockbooks-reports/{single-account → txt/single-account}/acct_meals.ent.txt +0 -0
- data/sample_data/minimal/rockbooks-reports/{single-account → txt/single-account}/acct_misc.exp.txt +0 -0
- data/sample_data/minimal/rockbooks-reports/{single-account → txt/single-account}/acct_mktng.exp.txt +0 -0
- data/sample_data/minimal/rockbooks-reports/{single-account → txt/single-account}/acct_own.equity.txt +1 -1
- data/sample_data/minimal/rockbooks-reports/{single-account → txt/single-account}/acct_paypal.txt +0 -0
- data/sample_data/minimal/rockbooks-reports/{single-account → txt/single-account}/acct_prof.fees.txt +0 -0
- data/sample_data/minimal/rockbooks-reports/{single-account → txt/single-account}/acct_repair.maint.txt +0 -0
- data/sample_data/minimal/rockbooks-reports/{single-account → txt/single-account}/acct_ret.earn.txt +0 -0
- data/sample_data/minimal/rockbooks-reports/{single-account → txt/single-account}/acct_ship.exp.txt +0 -0
- data/sample_data/minimal/rockbooks-reports/{single-account → txt/single-account}/acct_sls.cons.txt +1 -1
- data/sample_data/minimal/rockbooks-reports/{single-account → txt/single-account}/acct_supplies.txt +0 -0
- data/sample_data/minimal/rockbooks-reports/{single-account → txt/single-account}/acct_sw.exp.txt +0 -0
- data/sample_data/minimal/rockbooks-reports/{single-account → txt/single-account}/acct_tr.airfare.txt +0 -0
- data/sample_data/minimal/rockbooks-reports/{single-account → txt/single-account}/acct_tr.autorent.txt +0 -0
- data/sample_data/minimal/rockbooks-reports/{single-account → txt/single-account}/acct_tr.gas.etc.txt +0 -0
- data/sample_data/minimal/rockbooks-reports/{single-account → txt/single-account}/acct_tr.govt.txt +0 -0
- data/sample_data/minimal/rockbooks-reports/{single-account → txt/single-account}/acct_tr.lodging.txt +0 -0
- data/sample_data/minimal/rockbooks-reports/{single-account → txt/single-account}/acct_tr.m.e.txt +0 -0
- data/sample_data/minimal/rockbooks-reports/{single-account → txt/single-account}/acct_tr.m.i.txt +0 -0
- data/sample_data/minimal/rockbooks-reports/{single-account → txt/single-account}/acct_tr.mileage.txt +0 -0
- data/sample_data/minimal/rockbooks-reports/{single-account → txt/single-account}/acct_tr.misc.txt +0 -0
- data/sample_data/minimal/rockbooks-reports/{single-account → txt/single-account}/acct_tr.parking.txt +0 -0
- data/sample_data/minimal/rockbooks-reports/{single-account → txt/single-account}/acct_tr.perdiem.mi.txt +0 -0
- data/sample_data/minimal/rockbooks-reports/{single-account → txt/single-account}/acct_tr.taxi.txt +0 -0
- data/sample_data/minimal/rockbooks-reports/{single-account → txt/single-account}/acct_tr.trainfare.txt +0 -0
- data/sample_data/minimal/rockbooks-reports/{single-account → txt/single-account}/acct_tr.unclass.txt +0 -0
- metadata +155 -151
- data/sample_data/minimal/rockbooks-reports/all_txns_by_acct.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/all_txns_by_amount.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/all_txns_by_date.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/balance_sheet.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/ck.hsbc.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/general.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/hsbc_visa.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/income_statement.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/receipts.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/single-account/acct_accts.rec.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/single-account/acct_bank.fees.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/single-account/acct_books.refs.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/single-account/acct_cc.hsbc.visa.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/single-account/acct_cc.proc.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/single-account/acct_ck.hsbc.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/single-account/acct_conf.fees.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/single-account/acct_cowork.fees.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/single-account/acct_govt.fees.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/single-account/acct_inet.fees.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/single-account/acct_insurance.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/single-account/acct_int.exp.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/single-account/acct_loan.to.sh.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/single-account/acct_meals.ent.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/single-account/acct_misc.exp.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/single-account/acct_mktng.exp.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/single-account/acct_own.equity.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/single-account/acct_paypal.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/single-account/acct_prof.fees.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/single-account/acct_repair.maint.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/single-account/acct_ret.earn.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/single-account/acct_ship.exp.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/single-account/acct_sls.cons.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/single-account/acct_supplies.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/single-account/acct_sw.exp.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/single-account/acct_tr.airfare.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/single-account/acct_tr.autorent.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/single-account/acct_tr.gas.etc.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/single-account/acct_tr.govt.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/single-account/acct_tr.lodging.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/single-account/acct_tr.m.e.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/single-account/acct_tr.m.i.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/single-account/acct_tr.mileage.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/single-account/acct_tr.misc.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/single-account/acct_tr.parking.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/single-account/acct_tr.perdiem.mi.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/single-account/acct_tr.taxi.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/single-account/acct_tr.trainfare.pdf +0 -0
- data/sample_data/minimal/rockbooks-reports/single-account/acct_tr.unclass.pdf +0 -0
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|