Commit graph

33 commits

Author SHA1 Message Date
Bradley M. Kuhn
9dc352ad6f Some of the totals rounded via -V cause rounding more than one penny.
Use two cents as to test if the amounts are close enough.
2013-07-14 15:09:52 -04:00
Bradley M. Kuhn
ce1c3e8747 Add Fraud Receivable to Accrued accounts.
Funds lots and expected recoverable from Fraud are in an account called
"Accrued:Fraud Receivable".  In this report, show this along with the total
of Loan Receivables.
2013-07-14 15:07:29 -04:00
Bradley M. Kuhn
dc333b9f24 Type lists need to change along with the groupings. 2013-05-10 12:16:07 -04:00
Bradley M. Kuhn
a2ab6a8a60 Chart of accounts change s/Enforcement/Compliance/, but make backwards compatible. 2013-05-10 12:16:07 -04:00
Bradley M. Kuhn
e606dfd72f Fix typo in error output.
HT Loïc Dachary <loic@dachary.org>, who noticed this.
2013-02-20 07:49:50 -05:00
Bradley M. Kuhn
b378359f5f Use a Math::BigFloat() rather than a regular float for Adjustment comparison.
Based on patch review by Loïc Dachary <loic@dachary.org>, we discovered that
this script inconsistently used 0.02 as a float when comparing against
numbers from the Math::BigFloat() package.  While there were no known bugs
related to this (presumably the 0.02 got coerced into a BigFloat (or
vice-versa) and compared properly), this change nevertheless normalizes to
use of a BigFloat for comparison.
2013-02-20 07:49:50 -05:00
Bradley M. Kuhn
cbdffb9a41 Catch a few additional accounts under Conference RBI category. 2013-02-18 14:36:39 -05:00
Bradley M. Kuhn
7d04b92ad1 This could be for any period, not just the FY. 2013-02-18 14:08:46 -05:00
Bradley M. Kuhn
ccd0685b6d Correct account names due to renaming of Conference accounts in chart of accounts. 2013-02-18 14:08:46 -05:00
Bradley M. Kuhn
6d98bc58ae Correct sorting of output in trial balance report. 2013-01-06 19:28:46 -05:00
Bradley M. Kuhn
986829b1d6 Corrected Trial Balance report based on discussion with accountants.
I believe this trial balance report will look "more natural" to
accountants.
2013-01-04 10:19:16 -05:00
Bradley M. Kuhn
e317e1f23e Sort of accounts was buggy; it never made the final else due to bad regexes.
This fix now has the sort working correctly.
2013-01-04 10:18:41 -05:00
Bradley M. Kuhn
2fad8fe238 Some minor formatting fixes for the trial balance report. 2013-01-03 13:37:18 -05:00
Bradley M. Kuhn
750321c0b1 Change Income and Expenses reports to generate CSV files, rather than TXT files. 2013-01-03 13:37:08 -05:00
Bradley M. Kuhn
b939bbe8c6 Convert trial-balance report to CSV from TXT file.
Also, ignore Ledger's Equity: accounts properly.
2013-01-03 12:30:43 -05:00
Bradley M. Kuhn
d18e01a00f Changed balance sheet output from a TXT file to a CSV file. 2013-01-03 12:19:59 -05:00
Bradley M. Kuhn
bfdf20b31c Updated sorting function based on advice of auditing accountants.
Our auditing accounts tell us they want accounts sorted by:
Assets
Liabilities
Net Assets
Income
Expenses

in a general ledger report.  Generally, I think we should just apply the
same sorting.

Since Ledger doesn't use account codes by default, this is my hack to
solve this problem for now.  Maybe there should be an account code tag for
sorting purposes at least?
2013-01-03 11:44:55 -05:00
Bradley M. Kuhn
269d0fdd5e Created Trial balance report for summary reports. 2013-01-03 10:39:58 -05:00
Bradley M. Kuhn
4318c11fd9 Expense report favors Conferences first,
then takes Travel as if it were an Other category only after categories
have been handled.
2012-11-26 13:54:47 -05:00
Bradley M. Kuhn
470ed356be Expenses report completed. 2012-11-26 13:54:46 -05:00
Bradley M. Kuhn
7467917c7b Generate income report. 2012-11-26 13:54:46 -05:00
Bradley M. Kuhn
13c8a1fb56 Beginnings of income report. 2012-11-26 13:54:46 -05:00
Bradley M. Kuhn
76292d08d9 Calculate dates in a reusable way throughout script. 2012-11-26 13:54:46 -05:00
Bradley M. Kuhn
fe608b12e2 Remove cruft cut-and-pasted from another script. 2012-11-26 13:54:46 -05:00
Bradley M. Kuhn
239df56cfb Output should include a heading and an ending date. 2012-11-26 13:54:45 -05:00
Bradley M. Kuhn
e0df353ca3 Call a Balance Sheet, a Balance Sheet. :) 2012-11-26 13:54:45 -05:00
Bradley M. Kuhn
23dd0899f2 Allow for one penny margin of error on totals. 2012-11-26 13:54:45 -05:00
Bradley M. Kuhn
ccd5d06c04 Include any other liabilities that aren't credit cards. 2012-11-26 13:54:45 -05:00
Bradley M. Kuhn
46b13e8e55 Include credit card balances in the Liabilities list. 2012-11-26 13:54:45 -05:00
Bradley M. Kuhn
cba448b28b Move sanity checks to the bottom, after report is generated. Also, fix formatting. 2012-11-26 13:54:45 -05:00
Bradley M. Kuhn
7b0e4c4806 Add -X $. 2012-11-26 13:54:45 -05:00
Bradley M. Kuhn
f0ee16a373 Add Loans. 2012-11-26 13:54:45 -05:00
Bradley M. Kuhn
7ed4d20d87 Began summary reports script, starting with a basic balance sheet. 2012-11-26 13:54:44 -05:00