rock_books 0.1.6 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (262) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +5 -0
  3. data/LICENSE.txt +201 -21
  4. data/README.md +64 -142
  5. data/RELEASE_NOTES.md +38 -0
  6. data/lib/rock_books/cmd_line/command_line_interface.rb +30 -10
  7. data/lib/rock_books/documents/book_set.rb +5 -99
  8. data/lib/rock_books/documents/chart_of_accounts.rb +66 -29
  9. data/lib/rock_books/documents/journal.rb +45 -40
  10. data/lib/rock_books/documents/journal_entry_builder.rb +11 -5
  11. data/lib/rock_books/errors/date_range_error.rb +20 -0
  12. data/lib/rock_books/helpers/html_helper.rb +29 -0
  13. data/lib/rock_books/reports/balance_sheet.rb +2 -2
  14. data/lib/rock_books/reports/book_set_reporter.rb +201 -0
  15. data/lib/rock_books/reports/income_statement.rb +2 -2
  16. data/lib/rock_books/reports/index.html.erb +156 -0
  17. data/lib/rock_books/reports/receipts.html.erb +54 -0
  18. data/lib/rock_books/reports/receipts_report.rb +23 -10
  19. data/lib/rock_books/reports/report_context.rb +1 -6
  20. data/lib/rock_books/reports/reporter.rb +1 -1
  21. data/lib/rock_books/reports/transaction_report.rb +4 -2
  22. data/lib/rock_books/version.rb +1 -1
  23. data/manual.md +251 -0
  24. data/rock_books.gemspec +4 -3
  25. data/sample_data/minimal/receipts/01/2018-01-01-sample-receipt.jpg +0 -0
  26. data/sample_data/minimal/rockbooks-inputs/{2017-xyz-chart-of-accounts.txt → 2018-xyz-chart-of-accounts.txt} +3 -1
  27. data/sample_data/minimal/rockbooks-inputs/{2017-xyz-checking-journal.txt → 2018-xyz-checking-journal.txt} +3 -6
  28. data/sample_data/minimal/rockbooks-inputs/{2017-xyz-general-journal.txt → 2018-xyz-general-journal.txt} +3 -3
  29. data/sample_data/minimal/rockbooks-inputs/2018-xyz-visa-journal.txt +32 -0
  30. data/sample_data/minimal/rockbooks-reports/html/all_txns_by_acct.html +467 -454
  31. data/sample_data/minimal/rockbooks-reports/html/all_txns_by_amount.html +90 -84
  32. data/sample_data/minimal/rockbooks-reports/html/all_txns_by_date.html +89 -83
  33. data/sample_data/minimal/rockbooks-reports/html/balance_sheet.html +35 -35
  34. data/sample_data/minimal/rockbooks-reports/html/ck.hsbc.disb.html +27 -27
  35. data/sample_data/minimal/rockbooks-reports/html/ck_hsbc_disb.html +40 -0
  36. data/sample_data/minimal/rockbooks-reports/html/general.html +28 -28
  37. data/sample_data/minimal/rockbooks-reports/html/hsbc_visa.html +45 -40
  38. data/sample_data/minimal/rockbooks-reports/html/income_statement.html +33 -32
  39. data/sample_data/minimal/rockbooks-reports/html/index.html +271 -0
  40. data/sample_data/minimal/rockbooks-reports/html/receipts.html +28 -27
  41. data/sample_data/minimal/rockbooks-reports/html/single-account/acct_accts.rec.html +14 -14
  42. data/sample_data/minimal/rockbooks-reports/html/single-account/acct_accts_rec.html +27 -0
  43. data/sample_data/minimal/rockbooks-reports/html/single-account/acct_bank.fees.html +14 -14
  44. data/sample_data/minimal/rockbooks-reports/html/single-account/acct_bank_fees.html +27 -0
  45. data/sample_data/minimal/rockbooks-reports/html/single-account/acct_books.refs.html +14 -14
  46. data/sample_data/minimal/rockbooks-reports/html/single-account/acct_books_refs.html +27 -0
  47. data/sample_data/minimal/rockbooks-reports/html/single-account/acct_cc.hsbc.visa.html +61 -54
  48. data/sample_data/minimal/rockbooks-reports/html/single-account/acct_cc.proc.html +14 -14
  49. data/sample_data/minimal/rockbooks-reports/html/single-account/acct_cc_hsbc_visa.html +74 -0
  50. data/sample_data/minimal/rockbooks-reports/html/single-account/acct_cc_proc.html +27 -0
  51. data/sample_data/minimal/rockbooks-reports/html/single-account/acct_ck.hsbc.html +32 -32
  52. data/sample_data/minimal/rockbooks-reports/html/single-account/acct_ck_hsbc.html +45 -0
  53. data/sample_data/minimal/rockbooks-reports/html/single-account/acct_conf.fees.html +23 -23
  54. data/sample_data/minimal/rockbooks-reports/html/single-account/acct_conf_fees.html +36 -0
  55. data/sample_data/minimal/rockbooks-reports/html/single-account/acct_cowork.fees.html +29 -29
  56. data/sample_data/minimal/rockbooks-reports/html/single-account/acct_cowork_fees.html +42 -0
  57. data/sample_data/minimal/rockbooks-reports/html/single-account/acct_govt.fees.html +14 -14
  58. data/sample_data/minimal/rockbooks-reports/html/single-account/acct_govt_fees.html +27 -0
  59. data/sample_data/minimal/rockbooks-reports/html/single-account/acct_inet.fees.html +14 -14
  60. data/sample_data/minimal/rockbooks-reports/html/single-account/acct_inet_fees.html +27 -0
  61. data/sample_data/minimal/rockbooks-reports/html/single-account/acct_insurance.html +23 -23
  62. data/sample_data/minimal/rockbooks-reports/html/single-account/acct_int.exp.html +14 -14
  63. data/sample_data/minimal/rockbooks-reports/html/single-account/acct_int_exp.html +27 -0
  64. data/sample_data/minimal/rockbooks-reports/html/single-account/acct_loan.to.sh.html +34 -34
  65. data/sample_data/minimal/rockbooks-reports/html/single-account/acct_loan_to_sh.html +47 -0
  66. data/sample_data/minimal/rockbooks-reports/html/single-account/acct_meals.ent.html +14 -14
  67. data/sample_data/minimal/rockbooks-reports/html/single-account/acct_meals_ent.html +27 -0
  68. data/sample_data/minimal/rockbooks-reports/html/single-account/acct_misc.exp.html +14 -14
  69. data/sample_data/minimal/rockbooks-reports/html/single-account/acct_misc_exp.html +27 -0
  70. data/sample_data/minimal/rockbooks-reports/html/single-account/acct_mktng.exp.html +14 -14
  71. data/sample_data/minimal/rockbooks-reports/html/single-account/acct_mktng_exp.html +27 -0
  72. data/sample_data/minimal/rockbooks-reports/html/single-account/acct_own.equity.html +22 -22
  73. data/sample_data/minimal/rockbooks-reports/html/single-account/acct_own_equity.html +35 -0
  74. data/sample_data/minimal/rockbooks-reports/html/single-account/acct_paypal.html +14 -14
  75. data/sample_data/minimal/rockbooks-reports/html/single-account/acct_prof.fees.html +14 -14
  76. data/sample_data/minimal/rockbooks-reports/html/single-account/acct_prof_fees.html +27 -0
  77. data/sample_data/minimal/rockbooks-reports/html/single-account/acct_repair.maint.html +14 -14
  78. data/sample_data/minimal/rockbooks-reports/html/single-account/acct_repair_maint.html +27 -0
  79. data/sample_data/minimal/rockbooks-reports/html/single-account/acct_ret.earn.html +14 -14
  80. data/sample_data/minimal/rockbooks-reports/html/single-account/acct_ret_earn.html +27 -0
  81. data/sample_data/minimal/rockbooks-reports/html/single-account/acct_ship.exp.html +14 -14
  82. data/sample_data/minimal/rockbooks-reports/html/single-account/acct_ship_exp.html +27 -0
  83. data/sample_data/minimal/rockbooks-reports/html/single-account/acct_sls.cons.html +22 -22
  84. data/sample_data/minimal/rockbooks-reports/html/single-account/acct_sls_cons.html +35 -0
  85. data/sample_data/minimal/rockbooks-reports/html/single-account/acct_supplies.html +23 -14
  86. data/sample_data/minimal/rockbooks-reports/html/single-account/acct_sw.exp.html +14 -14
  87. data/sample_data/minimal/rockbooks-reports/html/single-account/acct_sw_exp.html +27 -0
  88. data/sample_data/minimal/rockbooks-reports/html/single-account/acct_tr.airfare.html +22 -22
  89. data/sample_data/minimal/rockbooks-reports/html/single-account/acct_tr.autorent.html +14 -14
  90. data/sample_data/minimal/rockbooks-reports/html/single-account/acct_tr.gas.etc.html +14 -14
  91. data/sample_data/minimal/rockbooks-reports/html/single-account/acct_tr.govt.html +14 -14
  92. data/sample_data/minimal/rockbooks-reports/html/single-account/acct_tr.lodging.html +23 -23
  93. data/sample_data/minimal/rockbooks-reports/html/single-account/acct_tr.m.e.html +14 -14
  94. data/sample_data/minimal/rockbooks-reports/html/single-account/acct_tr.m.i.html +14 -14
  95. data/sample_data/minimal/rockbooks-reports/html/single-account/acct_tr.mileage.html +22 -22
  96. data/sample_data/minimal/rockbooks-reports/html/single-account/acct_tr.misc.html +14 -14
  97. data/sample_data/minimal/rockbooks-reports/html/single-account/acct_tr.parking.html +14 -14
  98. data/sample_data/minimal/rockbooks-reports/html/single-account/acct_tr.perdiem.mi.html +22 -22
  99. data/sample_data/minimal/rockbooks-reports/html/single-account/acct_tr.taxi.html +14 -14
  100. data/sample_data/minimal/rockbooks-reports/html/single-account/acct_tr.trainfare.html +14 -14
  101. data/sample_data/minimal/rockbooks-reports/html/single-account/acct_tr.unclass.html +14 -14
  102. data/sample_data/minimal/rockbooks-reports/html/single-account/acct_tr_airfare.html +35 -0
  103. data/sample_data/minimal/rockbooks-reports/html/single-account/acct_tr_autorent.html +27 -0
  104. data/sample_data/minimal/rockbooks-reports/html/single-account/acct_tr_gas_etc.html +27 -0
  105. data/sample_data/minimal/rockbooks-reports/html/single-account/acct_tr_govt.html +27 -0
  106. data/sample_data/minimal/rockbooks-reports/html/single-account/acct_tr_lodging.html +36 -0
  107. data/sample_data/minimal/rockbooks-reports/html/single-account/acct_tr_m_e.html +27 -0
  108. data/sample_data/minimal/rockbooks-reports/html/single-account/acct_tr_m_i.html +27 -0
  109. data/sample_data/minimal/rockbooks-reports/html/single-account/acct_tr_mileage.html +35 -0
  110. data/sample_data/minimal/rockbooks-reports/html/single-account/acct_tr_misc.html +27 -0
  111. data/sample_data/minimal/rockbooks-reports/html/single-account/acct_tr_parking.html +27 -0
  112. data/sample_data/minimal/rockbooks-reports/html/single-account/acct_tr_perdiem_mi.html +35 -0
  113. data/sample_data/minimal/rockbooks-reports/html/single-account/acct_tr_taxi.html +27 -0
  114. data/sample_data/minimal/rockbooks-reports/html/single-account/acct_tr_trainfare.html +27 -0
  115. data/sample_data/minimal/rockbooks-reports/html/single-account/acct_tr_unclass.html +27 -0
  116. data/sample_data/minimal/rockbooks-reports/pdf/all_txns_by_acct.pdf +0 -0
  117. data/sample_data/minimal/rockbooks-reports/pdf/all_txns_by_amount.pdf +0 -0
  118. data/sample_data/minimal/rockbooks-reports/pdf/all_txns_by_date.pdf +0 -0
  119. data/sample_data/minimal/rockbooks-reports/pdf/balance_sheet.pdf +0 -0
  120. data/sample_data/minimal/rockbooks-reports/pdf/ck.hsbc.disb.pdf +0 -0
  121. data/sample_data/minimal/rockbooks-reports/pdf/ck_hsbc_disb.pdf +0 -0
  122. data/sample_data/minimal/rockbooks-reports/pdf/general.pdf +0 -0
  123. data/sample_data/minimal/rockbooks-reports/pdf/hsbc_visa.pdf +0 -0
  124. data/sample_data/minimal/rockbooks-reports/pdf/income_statement.pdf +0 -0
  125. data/sample_data/minimal/rockbooks-reports/pdf/receipts.pdf +0 -0
  126. data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_accts.rec.pdf +0 -0
  127. data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_accts_rec.pdf +0 -0
  128. data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_bank.fees.pdf +0 -0
  129. data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_bank_fees.pdf +0 -0
  130. data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_books.refs.pdf +0 -0
  131. data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_books_refs.pdf +0 -0
  132. data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_cc.hsbc.visa.pdf +0 -0
  133. data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_cc.proc.pdf +0 -0
  134. data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_cc_hsbc_visa.pdf +0 -0
  135. data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_cc_proc.pdf +0 -0
  136. data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_ck.hsbc.pdf +0 -0
  137. data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_ck_hsbc.pdf +0 -0
  138. data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_conf.fees.pdf +0 -0
  139. data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_conf_fees.pdf +0 -0
  140. data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_cowork.fees.pdf +0 -0
  141. data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_cowork_fees.pdf +0 -0
  142. data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_govt.fees.pdf +0 -0
  143. data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_govt_fees.pdf +0 -0
  144. data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_inet.fees.pdf +0 -0
  145. data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_inet_fees.pdf +0 -0
  146. data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_insurance.pdf +0 -0
  147. data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_int.exp.pdf +0 -0
  148. data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_int_exp.pdf +0 -0
  149. data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_loan.to.sh.pdf +0 -0
  150. data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_loan_to_sh.pdf +0 -0
  151. data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_meals.ent.pdf +0 -0
  152. data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_meals_ent.pdf +0 -0
  153. data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_misc.exp.pdf +0 -0
  154. data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_misc_exp.pdf +0 -0
  155. data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_mktng.exp.pdf +0 -0
  156. data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_mktng_exp.pdf +0 -0
  157. data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_own.equity.pdf +0 -0
  158. data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_own_equity.pdf +0 -0
  159. data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_paypal.pdf +0 -0
  160. data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_prof.fees.pdf +0 -0
  161. data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_prof_fees.pdf +0 -0
  162. data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_repair.maint.pdf +0 -0
  163. data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_repair_maint.pdf +0 -0
  164. data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_ret.earn.pdf +0 -0
  165. data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_ret_earn.pdf +0 -0
  166. data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_ship.exp.pdf +0 -0
  167. data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_ship_exp.pdf +0 -0
  168. data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_sls.cons.pdf +0 -0
  169. data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_sls_cons.pdf +0 -0
  170. data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_supplies.pdf +0 -0
  171. data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_sw.exp.pdf +0 -0
  172. data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_sw_exp.pdf +0 -0
  173. data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_tr.airfare.pdf +0 -0
  174. data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_tr.autorent.pdf +0 -0
  175. data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_tr.gas.etc.pdf +0 -0
  176. data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_tr.govt.pdf +0 -0
  177. data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_tr.lodging.pdf +0 -0
  178. data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_tr.m.e.pdf +0 -0
  179. data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_tr.m.i.pdf +0 -0
  180. data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_tr.mileage.pdf +0 -0
  181. data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_tr.misc.pdf +0 -0
  182. data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_tr.parking.pdf +0 -0
  183. data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_tr.perdiem.mi.pdf +0 -0
  184. data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_tr.taxi.pdf +0 -0
  185. data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_tr.trainfare.pdf +0 -0
  186. data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_tr.unclass.pdf +0 -0
  187. data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_tr_airfare.pdf +0 -0
  188. data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_tr_autorent.pdf +0 -0
  189. data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_tr_gas_etc.pdf +0 -0
  190. data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_tr_govt.pdf +0 -0
  191. data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_tr_lodging.pdf +0 -0
  192. data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_tr_m_e.pdf +0 -0
  193. data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_tr_m_i.pdf +0 -0
  194. data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_tr_mileage.pdf +0 -0
  195. data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_tr_misc.pdf +0 -0
  196. data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_tr_parking.pdf +0 -0
  197. data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_tr_perdiem_mi.pdf +0 -0
  198. data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_tr_taxi.pdf +0 -0
  199. data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_tr_trainfare.pdf +0 -0
  200. data/sample_data/minimal/rockbooks-reports/pdf/single-account/acct_tr_unclass.pdf +0 -0
  201. data/sample_data/minimal/rockbooks-reports/txt/all_txns_by_acct.txt +56 -43
  202. data/sample_data/minimal/rockbooks-reports/txt/all_txns_by_amount.txt +29 -23
  203. data/sample_data/minimal/rockbooks-reports/txt/all_txns_by_date.txt +29 -23
  204. data/sample_data/minimal/rockbooks-reports/txt/balance_sheet.txt +4 -4
  205. data/sample_data/minimal/rockbooks-reports/txt/ck.hsbc.disb.txt +5 -5
  206. data/sample_data/minimal/rockbooks-reports/txt/ck_hsbc_disb.txt +24 -0
  207. data/sample_data/minimal/rockbooks-reports/txt/general.txt +5 -5
  208. data/sample_data/minimal/rockbooks-reports/txt/hsbc_visa.txt +18 -13
  209. data/sample_data/minimal/rockbooks-reports/txt/income_statement.txt +4 -3
  210. data/sample_data/minimal/rockbooks-reports/txt/receipts.txt +6 -5
  211. data/sample_data/minimal/rockbooks-reports/txt/single-account/acct_accts_rec.txt +11 -0
  212. data/sample_data/minimal/rockbooks-reports/txt/single-account/acct_bank_fees.txt +11 -0
  213. data/sample_data/minimal/rockbooks-reports/txt/single-account/acct_books_refs.txt +11 -0
  214. data/sample_data/minimal/rockbooks-reports/txt/single-account/acct_cc.hsbc.visa.txt +21 -14
  215. data/sample_data/minimal/rockbooks-reports/txt/single-account/acct_cc_hsbc_visa.txt +58 -0
  216. data/sample_data/minimal/rockbooks-reports/txt/single-account/acct_cc_proc.txt +11 -0
  217. data/sample_data/minimal/rockbooks-reports/txt/single-account/acct_ck.hsbc.txt +4 -4
  218. data/sample_data/minimal/rockbooks-reports/txt/single-account/acct_ck_hsbc.txt +29 -0
  219. data/sample_data/minimal/rockbooks-reports/txt/single-account/acct_conf.fees.txt +2 -2
  220. data/sample_data/minimal/rockbooks-reports/txt/single-account/acct_conf_fees.txt +20 -0
  221. data/sample_data/minimal/rockbooks-reports/txt/single-account/acct_cowork.fees.txt +4 -4
  222. data/sample_data/minimal/rockbooks-reports/txt/single-account/acct_cowork_fees.txt +26 -0
  223. data/sample_data/minimal/rockbooks-reports/txt/single-account/acct_govt_fees.txt +11 -0
  224. data/sample_data/minimal/rockbooks-reports/txt/single-account/acct_inet_fees.txt +11 -0
  225. data/sample_data/minimal/rockbooks-reports/txt/single-account/acct_insurance.txt +3 -3
  226. data/sample_data/minimal/rockbooks-reports/txt/single-account/acct_int_exp.txt +11 -0
  227. data/sample_data/minimal/rockbooks-reports/txt/single-account/acct_loan.to.sh.txt +4 -4
  228. data/sample_data/minimal/rockbooks-reports/txt/single-account/acct_loan_to_sh.txt +31 -0
  229. data/sample_data/minimal/rockbooks-reports/txt/single-account/acct_meals_ent.txt +11 -0
  230. data/sample_data/minimal/rockbooks-reports/txt/single-account/acct_misc_exp.txt +11 -0
  231. data/sample_data/minimal/rockbooks-reports/txt/single-account/acct_mktng_exp.txt +11 -0
  232. data/sample_data/minimal/rockbooks-reports/txt/single-account/acct_own.equity.txt +1 -1
  233. data/sample_data/minimal/rockbooks-reports/txt/single-account/acct_own_equity.txt +19 -0
  234. data/sample_data/minimal/rockbooks-reports/txt/single-account/acct_prof_fees.txt +11 -0
  235. data/sample_data/minimal/rockbooks-reports/txt/single-account/acct_repair_maint.txt +11 -0
  236. data/sample_data/minimal/rockbooks-reports/txt/single-account/acct_ret_earn.txt +11 -0
  237. data/sample_data/minimal/rockbooks-reports/txt/single-account/acct_ship_exp.txt +11 -0
  238. data/sample_data/minimal/rockbooks-reports/txt/single-account/acct_sls.cons.txt +2 -2
  239. data/sample_data/minimal/rockbooks-reports/txt/single-account/acct_sls_cons.txt +19 -0
  240. data/sample_data/minimal/rockbooks-reports/txt/single-account/acct_supplies.txt +11 -2
  241. data/sample_data/minimal/rockbooks-reports/txt/single-account/acct_sw_exp.txt +11 -0
  242. data/sample_data/minimal/rockbooks-reports/txt/single-account/acct_tr.airfare.txt +1 -1
  243. data/sample_data/minimal/rockbooks-reports/txt/single-account/acct_tr.lodging.txt +2 -2
  244. data/sample_data/minimal/rockbooks-reports/txt/single-account/acct_tr.mileage.txt +2 -2
  245. data/sample_data/minimal/rockbooks-reports/txt/single-account/acct_tr.perdiem.mi.txt +1 -1
  246. data/sample_data/minimal/rockbooks-reports/txt/single-account/acct_tr_airfare.txt +19 -0
  247. data/sample_data/minimal/rockbooks-reports/txt/single-account/acct_tr_autorent.txt +11 -0
  248. data/sample_data/minimal/rockbooks-reports/txt/single-account/acct_tr_gas_etc.txt +11 -0
  249. data/sample_data/minimal/rockbooks-reports/txt/single-account/acct_tr_govt.txt +11 -0
  250. data/sample_data/minimal/rockbooks-reports/txt/single-account/acct_tr_lodging.txt +20 -0
  251. data/sample_data/minimal/rockbooks-reports/txt/single-account/acct_tr_m_e.txt +11 -0
  252. data/sample_data/minimal/rockbooks-reports/txt/single-account/acct_tr_m_i.txt +11 -0
  253. data/sample_data/minimal/rockbooks-reports/txt/single-account/acct_tr_mileage.txt +19 -0
  254. data/sample_data/minimal/rockbooks-reports/txt/single-account/acct_tr_misc.txt +11 -0
  255. data/sample_data/minimal/rockbooks-reports/txt/single-account/acct_tr_parking.txt +11 -0
  256. data/sample_data/minimal/rockbooks-reports/txt/single-account/acct_tr_perdiem_mi.txt +19 -0
  257. data/sample_data/minimal/rockbooks-reports/txt/single-account/acct_tr_taxi.txt +11 -0
  258. data/sample_data/minimal/rockbooks-reports/txt/single-account/acct_tr_trainfare.txt +11 -0
  259. data/sample_data/minimal/rockbooks-reports/txt/single-account/acct_tr_unclass.txt +11 -0
  260. metadata +147 -15
  261. data/sample_data/minimal/receipts/01/2017-01-20-phoenix-hampton.pdf +0 -0
  262. data/sample_data/minimal/rockbooks-inputs/2017-xyz-visa-journal.txt +0 -27
@@ -1,6 +1,6 @@
1
1
  --------------------------------------------------------------------------------
2
2
  XYZ Consulting, Inc.
3
- Balance Sheet -- 2018-06-15
3
+ Balance Sheet for Period Ending 2018-12-31
4
4
  --------------------------------------------------------------------------------
5
5
 
6
6
 
@@ -15,10 +15,10 @@ Assets
15
15
  Liabilities
16
16
  -----------
17
17
 
18
- -150.00 cc.hsbc.visa Visa Credit Card
18
+ 107.25 cc.hsbc.visa Visa Credit Card
19
19
  912.70 loan.to.sh Loan Payable to Shareholder
20
20
  ------------
21
- 762.70
21
+ 1019.95
22
22
 
23
23
 
24
24
  Equity
@@ -28,5 +28,5 @@ Equity
28
28
  ------------
29
29
  5000.00
30
30
 
31
- 7237.30 Assets - (Liabilities + Equity)
31
+ 6980.05 Assets - (Liabilities + Equity)
32
32
  ============
@@ -1,17 +1,17 @@
1
1
  --------------------------------------------------------------------------------
2
2
  XYZ Consulting, Inc.
3
- HSBC Checking Disbursements Journal - 2017
3
+ HSBC Checking Disbursements Journal - 2018
4
4
  Transactions for Account #ck.hsbc -- HSBC Checking
5
5
  --------------------------------------------------------------------------------
6
6
 
7
7
 
8
- 2017-01-01 5000.00 ck.hsbc HSBC Checking
8
+ 2018-01-01 5000.00 ck.hsbc HSBC Checking
9
9
  Initial Deposit from Shareholder
10
10
 
11
- 2017-01-05 -2000.00 ck.hsbc HSBC Checking
11
+ 2018-01-05 -2000.00 ck.hsbc HSBC Checking
12
12
 
13
- 2017-01-07 10000.00 ck.hsbc HSBC Checking
14
- Invoice #437, Dec. 2016 work, ABC, Inc.
13
+ 2018-01-07 10000.00 ck.hsbc HSBC Checking
14
+ Invoice #437, Dec. 2017 work, ABC, Inc.
15
15
 
16
16
  Totals
17
17
  ------
@@ -0,0 +1,24 @@
1
+ --------------------------------------------------------------------------------
2
+ XYZ Consulting, Inc.
3
+ HSBC Checking Disbursements Journal - 2018
4
+ Transactions for Account #ck.hsbc -- HSBC Checking
5
+ --------------------------------------------------------------------------------
6
+
7
+
8
+ 2018-01-01 5000.00 ck.hsbc HSBC Checking
9
+ Initial Deposit from Shareholder
10
+
11
+ 2018-01-05 -2000.00 ck.hsbc HSBC Checking
12
+
13
+ 2018-01-07 10000.00 ck.hsbc HSBC Checking
14
+ Invoice #437, Dec. 2017 work, ABC, Inc.
15
+
16
+ Totals
17
+ ------
18
+
19
+ 2000.00 cc.hsbc.visa Visa Credit Card
20
+ 13000.00 ck.hsbc HSBC Checking
21
+ -5000.00 own.equity Owner's Equity
22
+ -10000.00 sls.cons Sales - Consulting
23
+ ------------
24
+ 0.00
@@ -1,18 +1,18 @@
1
1
  --------------------------------------------------------------------------------
2
2
  XYZ Consulting, Inc.
3
- General Journal - 2017
3
+ General Journal - 2018
4
4
  Transactions for Account # --
5
5
  --------------------------------------------------------------------------------
6
6
 
7
7
 
8
- 2017-01-08 300.00 tr.airfare Travel - Air Fares
8
+ 2018-01-08 300.00 tr.airfare Travel - Air Fares
9
9
  Phoenix conference air ticket paid on personal credit card
10
10
 
11
- 2017-01-20 495.00 tr.perdiem.mi Travel - Per Diem (Meals and Incidentals)
11
+ 2018-01-20 495.00 tr.perdiem.mi Travel - Per Diem (Meals and Incidentals)
12
12
  Per diem allowance for Phoenix conference (see worksheet)
13
13
 
14
- 2017-01-31 117.70 tr.mileage Travel - Mileage Allowance
15
- Mileage reimbursement for business travel of January 2017 (see worksheet)
14
+ 2018-01-31 117.70 tr.mileage Travel - Mileage Allowance
15
+ Mileage reimbursement for business travel of January 2018 (see worksheet)
16
16
 
17
17
  Totals
18
18
  ------
@@ -1,37 +1,42 @@
1
1
  --------------------------------------------------------------------------------
2
2
  XYZ Consulting, Inc.
3
- HSBC Visa Journal - 2017
3
+ HSBC Visa Journal - 2018
4
4
  Transactions for Account #cc.hsbc.visa -- Visa Credit Card
5
5
  --------------------------------------------------------------------------------
6
6
 
7
7
 
8
- 2017-01-02 -750.00 cc.hsbc.visa Visa Credit Card
9
- Professional insurance for the year 2017, Hartford Insurance
10
- Receipt: 01/2017-01-02-hartford-insurance.pdf
8
+ 2018-01-01 -257.25 cc.hsbc.visa Visa Credit Card
9
+ Office Supplies
10
+ Receipt: 01/2018-01-01-sample-receipt.jpg
11
11
 
12
- 2017-01-02 -100.00 cc.hsbc.visa Visa Credit Card
12
+ 2018-01-02 -750.00 cc.hsbc.visa Visa Credit Card
13
+ Professional insurance for the year 2018, Hartford Insurance
14
+ Receipt: 01/2018-01-02-hartford-insurance.pdf
15
+
16
+ 2018-01-02 -100.00 cc.hsbc.visa Visa Credit Card
13
17
  New Work City coworking fee for the month of January
14
- Receipt: 01/2017-01-02-nwc.pdf
18
+ Receipt: 01/2018-01-02-nwc.pdf
15
19
 
16
- 2017-01-06 -500.00 cc.hsbc.visa Visa Credit Card
20
+ 2018-01-06 -500.00 cc.hsbc.visa Visa Credit Card
17
21
  Phoenix conference registration fee
18
- Receipt: 01/2017-01-06-phoenix-conference-registration.pdf
22
+ Receipt: 01/2018-01-06-phoenix-conference-registration.pdf
19
23
 
20
- 2017-01-20 -400.00 cc.hsbc.visa Visa Credit Card
24
+ 2018-01-20 -400.00 cc.hsbc.visa Visa Credit Card
21
25
  Hampton Inn Phoenix (conference)
22
- Receipt: 01/2017-01-20-phoenix-hampton.pdf
26
+ Receipt: 01/2018-01-20-phoenix-hampton.pdf
23
27
 
24
- 2017-02-01 -100.00 cc.hsbc.visa Visa Credit Card
28
+ 2018-02-01 -100.00 cc.hsbc.visa Visa Credit Card
25
29
  New Work City coworking fee for the month of February
26
- Receipt: 02/2017-02-01-nwc.pdf
30
+ Receipt: 02/2018-02-01-nwc.pdf
27
31
 
28
32
  Totals
29
33
  ------
30
34
 
31
- -1850.00 cc.hsbc.visa Visa Credit Card
35
+ -2107.25 cc.hsbc.visa Visa Credit Card
32
36
  500.00 conf.fees Conference Fees
33
37
  200.00 cowork.fees Coworking Fees
34
38
  750.00 insurance Insurance
39
+ 257.25 supplies Supplies
35
40
  400.00 tr.lodging Travel - Lodging
36
41
  ------------
37
42
  0.00
@@ -1,6 +1,6 @@
1
1
  --------------------------------------------------------------------------------
2
2
  XYZ Consulting, Inc.
3
- Income Statement -- 1900-01-01 to 2100-01-01
3
+ Income Statement -- 2018-01-01 to 2018-12-31
4
4
  --------------------------------------------------------------------------------
5
5
 
6
6
 
@@ -18,12 +18,13 @@ Expenses
18
18
  500.00 conf.fees Conference Fees
19
19
  200.00 cowork.fees Coworking Fees
20
20
  750.00 insurance Insurance
21
+ 257.25 supplies Supplies
21
22
  300.00 tr.airfare Travel - Air Fares
22
23
  400.00 tr.lodging Travel - Lodging
23
24
  117.70 tr.mileage Travel - Mileage Allowance
24
25
  495.00 tr.perdiem.mi Travel - Per Diem (Meals and Incidentals)
25
26
  ------------
26
- 2762.70
27
+ 3019.95
27
28
 
28
- 7237.30 Net Income
29
+ 6980.05 Net Income
29
30
  ============
@@ -9,10 +9,11 @@ Missing Receipts:
9
9
  Journal Receipt Filespec
10
10
  ------- ----------------
11
11
 
12
- hsbc_visa 01/2017-01-02-nwc.pdf
13
- hsbc_visa 01/2017-01-02-hartford-insurance.pdf
14
- hsbc_visa 01/2017-01-06-phoenix-conference-registration.pdf
15
- hsbc_visa 02/2017-02-01-nwc.pdf
12
+ hsbc_visa 01/2018-01-02-nwc.pdf
13
+ hsbc_visa 01/2018-01-02-hartford-insurance.pdf
14
+ hsbc_visa 01/2018-01-06-phoenix-conference-registration.pdf
15
+ hsbc_visa 01/2018-01-20-phoenix-hampton.pdf
16
+ hsbc_visa 02/2018-02-01-nwc.pdf
16
17
 
17
18
 
18
19
 
@@ -21,4 +22,4 @@ Existing Receipts:
21
22
  Journal Receipt Filespec
22
23
  ------- ----------------
23
24
 
24
- hsbc_visa 01/2017-01-20-phoenix-hampton.pdf
25
+ hsbc_visa 01/2018-01-01-sample-receipt.jpg
@@ -0,0 +1,11 @@
1
+ --------------------------------------------------------------------------------
2
+ XYZ Consulting, Inc.
3
+ Transactions for Account accts.rec -- Accounts Receivable (Asset)
4
+ Total: 0.00
5
+ --------------------------------------------------------------------------------
6
+
7
+
8
+ There were no transactions for this account.
9
+
10
+
11
+
@@ -0,0 +1,11 @@
1
+ --------------------------------------------------------------------------------
2
+ XYZ Consulting, Inc.
3
+ Transactions for Account bank.fees -- Bank Charges (Expense)
4
+ Total: 0.00
5
+ --------------------------------------------------------------------------------
6
+
7
+
8
+ There were no transactions for this account.
9
+
10
+
11
+
@@ -0,0 +1,11 @@
1
+ --------------------------------------------------------------------------------
2
+ XYZ Consulting, Inc.
3
+ Transactions for Account books.refs -- Books, Screencasts, References (Expense)
4
+ Total: 0.00
5
+ --------------------------------------------------------------------------------
6
+
7
+
8
+ There were no transactions for this account.
9
+
10
+
11
+
@@ -1,51 +1,58 @@
1
1
  --------------------------------------------------------------------------------
2
2
  XYZ Consulting, Inc.
3
3
  Transactions for Account cc.hsbc.visa -- Visa Credit Card (Liability)
4
- Total: 150.00
4
+ Total: -107.25
5
5
  --------------------------------------------------------------------------------
6
6
 
7
7
 
8
- 2017-01-02 hsbc_visa -750.00 cc.hsbc.visa Visa Credit Card
8
+ 2018-01-01 hsbc_visa -257.25 cc.hsbc.visa Visa Credit Card
9
+ 257.25 supplies Supplies
10
+ Office Supplies
11
+ Receipt: 01/2018-01-01-sample-receipt.jpg
12
+
13
+
14
+ 2018-01-02 hsbc_visa -750.00 cc.hsbc.visa Visa Credit Card
9
15
  750.00 insurance Insurance
10
- Professional insurance for the year 2017, Hartford Insurance
11
- Receipt: 01/2017-01-02-hartford-insurance.pdf
16
+ Professional insurance for the year 2018, Hartford Insurance
17
+ Receipt: 01/2018-01-02-hartford-insurance.pdf
12
18
 
13
19
 
14
- 2017-01-02 hsbc_visa -100.00 cc.hsbc.visa Visa Credit Card
20
+ 2018-01-02 hsbc_visa -100.00 cc.hsbc.visa Visa Credit Card
15
21
  100.00 cowork.fees Coworking Fees
16
22
  New Work City coworking fee for the month of January
17
- Receipt: 01/2017-01-02-nwc.pdf
23
+ Receipt: 01/2018-01-02-nwc.pdf
18
24
 
19
25
 
20
- 2017-01-05 ck.hsbc.disb -2000.00 ck.hsbc HSBC Checking
26
+ 2018-01-05 ck.hsbc.disb -2000.00 ck.hsbc HSBC Checking
21
27
  2000.00 cc.hsbc.visa Visa Credit Card
22
28
 
23
- 2017-01-06 hsbc_visa -500.00 cc.hsbc.visa Visa Credit Card
29
+ 2018-01-06 hsbc_visa -500.00 cc.hsbc.visa Visa Credit Card
24
30
  500.00 conf.fees Conference Fees
25
31
  Phoenix conference registration fee
26
- Receipt: 01/2017-01-06-phoenix-conference-registration.pdf
32
+ Receipt: 01/2018-01-06-phoenix-conference-registration.pdf
27
33
 
28
34
 
29
- 2017-01-20 hsbc_visa -400.00 cc.hsbc.visa Visa Credit Card
35
+ 2018-01-20 hsbc_visa -400.00 cc.hsbc.visa Visa Credit Card
30
36
  400.00 tr.lodging Travel - Lodging
31
37
  Hampton Inn Phoenix (conference)
32
- Receipt: 01/2017-01-20-phoenix-hampton.pdf
38
+ Receipt: 01/2018-01-20-phoenix-hampton.pdf
33
39
 
34
40
 
35
- 2017-02-01 hsbc_visa -100.00 cc.hsbc.visa Visa Credit Card
41
+ 2018-02-01 hsbc_visa -100.00 cc.hsbc.visa Visa Credit Card
36
42
  100.00 cowork.fees Coworking Fees
37
43
  New Work City coworking fee for the month of February
38
- Receipt: 02/2017-02-01-nwc.pdf
44
+ Receipt: 02/2018-02-01-nwc.pdf
39
45
 
40
46
 
41
47
  Totals
42
48
  ------
43
49
 
44
- 150.00 cc.hsbc.visa Visa Credit Card
50
+ -107.25 cc.hsbc.visa Visa Credit Card
45
51
  -2000.00 ck.hsbc HSBC Checking
46
52
  500.00 conf.fees Conference Fees
47
53
  200.00 cowork.fees Coworking Fees
48
54
  750.00 insurance Insurance
55
+ 257.25 supplies Supplies
49
56
  400.00 tr.lodging Travel - Lodging
50
57
  ------------
51
58
  0.00
@@ -0,0 +1,58 @@
1
+ --------------------------------------------------------------------------------
2
+ XYZ Consulting, Inc.
3
+ Transactions for Account cc.hsbc.visa -- Visa Credit Card (Liability)
4
+ Total: -107.25
5
+ --------------------------------------------------------------------------------
6
+
7
+
8
+ 2018-01-01 hsbc_visa -257.25 cc.hsbc.visa Visa Credit Card
9
+ 257.25 supplies Supplies
10
+ Office Supplies
11
+ Receipt: 01/2018-01-01-sample-receipt.jpg
12
+
13
+
14
+ 2018-01-02 hsbc_visa -750.00 cc.hsbc.visa Visa Credit Card
15
+ 750.00 insurance Insurance
16
+ Professional insurance for the year 2018, Hartford Insurance
17
+ Receipt: 01/2018-01-02-hartford-insurance.pdf
18
+
19
+
20
+ 2018-01-02 hsbc_visa -100.00 cc.hsbc.visa Visa Credit Card
21
+ 100.00 cowork.fees Coworking Fees
22
+ New Work City coworking fee for the month of January
23
+ Receipt: 01/2018-01-02-nwc.pdf
24
+
25
+
26
+ 2018-01-05 ck.hsbc.disb -2000.00 ck.hsbc HSBC Checking
27
+ 2000.00 cc.hsbc.visa Visa Credit Card
28
+
29
+ 2018-01-06 hsbc_visa -500.00 cc.hsbc.visa Visa Credit Card
30
+ 500.00 conf.fees Conference Fees
31
+ Phoenix conference registration fee
32
+ Receipt: 01/2018-01-06-phoenix-conference-registration.pdf
33
+
34
+
35
+ 2018-01-20 hsbc_visa -400.00 cc.hsbc.visa Visa Credit Card
36
+ 400.00 tr.lodging Travel - Lodging
37
+ Hampton Inn Phoenix (conference)
38
+ Receipt: 01/2018-01-20-phoenix-hampton.pdf
39
+
40
+
41
+ 2018-02-01 hsbc_visa -100.00 cc.hsbc.visa Visa Credit Card
42
+ 100.00 cowork.fees Coworking Fees
43
+ New Work City coworking fee for the month of February
44
+ Receipt: 02/2018-02-01-nwc.pdf
45
+
46
+
47
+ Totals
48
+ ------
49
+
50
+ -107.25 cc.hsbc.visa Visa Credit Card
51
+ -2000.00 ck.hsbc HSBC Checking
52
+ 500.00 conf.fees Conference Fees
53
+ 200.00 cowork.fees Coworking Fees
54
+ 750.00 insurance Insurance
55
+ 257.25 supplies Supplies
56
+ 400.00 tr.lodging Travel - Lodging
57
+ ------------
58
+ 0.00
@@ -0,0 +1,11 @@
1
+ --------------------------------------------------------------------------------
2
+ XYZ Consulting, Inc.
3
+ Transactions for Account cc.proc -- Credit Card Processing Fees (Expense)
4
+ Total: 0.00
5
+ --------------------------------------------------------------------------------
6
+
7
+
8
+ There were no transactions for this account.
9
+
10
+
11
+
@@ -5,17 +5,17 @@
5
5
  --------------------------------------------------------------------------------
6
6
 
7
7
 
8
- 2017-01-01 ck.hsbc.disb 5000.00 ck.hsbc HSBC Checking
8
+ 2018-01-01 ck.hsbc.disb 5000.00 ck.hsbc HSBC Checking
9
9
  -5000.00 own.equity Owner's Equity
10
10
  Initial Deposit from Shareholder
11
11
 
12
12
 
13
- 2017-01-05 ck.hsbc.disb -2000.00 ck.hsbc HSBC Checking
13
+ 2018-01-05 ck.hsbc.disb -2000.00 ck.hsbc HSBC Checking
14
14
  2000.00 cc.hsbc.visa Visa Credit Card
15
15
 
16
- 2017-01-07 ck.hsbc.disb 10000.00 ck.hsbc HSBC Checking
16
+ 2018-01-07 ck.hsbc.disb 10000.00 ck.hsbc HSBC Checking
17
17
  -10000.00 sls.cons Sales - Consulting
18
- Invoice #437, Dec. 2016 work, ABC, Inc.
18
+ Invoice #437, Dec. 2017 work, ABC, Inc.
19
19
 
20
20
 
21
21
  Totals
@@ -0,0 +1,29 @@
1
+ --------------------------------------------------------------------------------
2
+ XYZ Consulting, Inc.
3
+ Transactions for Account ck.hsbc -- HSBC Checking (Asset)
4
+ Total: 13000.00
5
+ --------------------------------------------------------------------------------
6
+
7
+
8
+ 2018-01-01 ck.hsbc.disb 5000.00 ck.hsbc HSBC Checking
9
+ -5000.00 own.equity Owner's Equity
10
+ Initial Deposit from Shareholder
11
+
12
+
13
+ 2018-01-05 ck.hsbc.disb -2000.00 ck.hsbc HSBC Checking
14
+ 2000.00 cc.hsbc.visa Visa Credit Card
15
+
16
+ 2018-01-07 ck.hsbc.disb 10000.00 ck.hsbc HSBC Checking
17
+ -10000.00 sls.cons Sales - Consulting
18
+ Invoice #437, Dec. 2017 work, ABC, Inc.
19
+
20
+
21
+ Totals
22
+ ------
23
+
24
+ 2000.00 cc.hsbc.visa Visa Credit Card
25
+ 13000.00 ck.hsbc HSBC Checking
26
+ -5000.00 own.equity Owner's Equity
27
+ -10000.00 sls.cons Sales - Consulting
28
+ ------------
29
+ 0.00
@@ -5,10 +5,10 @@
5
5
  --------------------------------------------------------------------------------
6
6
 
7
7
 
8
- 2017-01-06 hsbc_visa -500.00 cc.hsbc.visa Visa Credit Card
8
+ 2018-01-06 hsbc_visa -500.00 cc.hsbc.visa Visa Credit Card
9
9
  500.00 conf.fees Conference Fees
10
10
  Phoenix conference registration fee
11
- Receipt: 01/2017-01-06-phoenix-conference-registration.pdf
11
+ Receipt: 01/2018-01-06-phoenix-conference-registration.pdf
12
12
 
13
13
 
14
14
  Totals