Commit graph

184 commits

Author SHA1 Message Date
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
fbd6c30903 Add option to skip generating the page breaks. 2013-01-03 13:36:38 -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
f01ddd4766 Change chart of accounts output to be a CSV file instead of TXT file.
This includes adding a formatted start date string too.
2013-01-03 12:19:28 -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
32e51f65a1 Verify that files are not duplicated in the MANIFEST.
Keep a hash so that file output to the MANIFEST file doesn't have
duplicates of the same file name in it.
2012-11-26 13:54:48 -05:00
Bradley M. Kuhn
10d3f55933 Print date in a more friendly format.
Includes issue of "ends on" date being correct for mere mortals as opposed
to being right for Ledger only.
2012-11-26 13:54:47 -05:00
Bradley M. Kuhn
df6428f549 Adapted for use with Ledger 3.
Includes forcing of -V so all currency is in default.
2012-11-26 13:54:47 -05:00
Bradley M. Kuhn
4f8ea18fec Support selection of string encoding.
Allow command line option that permits specification of string encoding,
passed to Python's unicode() function.
2012-11-26 13:54:47 -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
3e634b6d45 Ignore <Adjustments> accounts. 2012-11-26 13:54:47 -05:00
Bradley M. Kuhn
586c4eb3b3 Use -V to normalize currencies in general-ledger report. 2012-11-26 13:54:46 -05:00
Bradley M. Kuhn
c7a798be8e Fixed output. 2012-11-26 13:54:46 -05:00
Bradley M. Kuhn
d817000b82 Various changes to get the script working. 2012-11-26 13:54:46 -05:00
Bradley M. Kuhn
ca359f0606 First attempt at this cash-receipts-and-disbursments-journals.plx script,
based on general-ledger-report.plx
The general-ledger-report.plx was originally found in this repository:
  http://gitorious.org/bkuhn/small-hacks/blobs/master/general-ledger-report.plx
And these early commits on cash-receipts-and-disbursments-journals.plx
were fro that repository as well, in:
http://gitorious.org/bkuhn/small-hacks/blobs/master/cash-receipts-and-disbursments-journals.plx
2012-11-26 13:54:46 -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
Bradley M. Kuhn
530fa76bea Update copyright year, I've made changes. 2012-11-26 13:54:44 -05:00
Bradley M. Kuhn
7772e33720 Include all types of totals that need to be considered when generating fund report. 2012-11-26 13:54:44 -05:00
Bradley M. Kuhn
60f45c3e2c Ignore <Adjustment> entries in the report.
With the advent of multi-currency in accounts, <Adjustment> lines can be
generated in reports.  I don't know if there's a way to turn these off on
the Ledger command line or not at the moment, but if they're there, they
clearly should be ignored by this script.
2012-11-26 13:54:44 -05:00
Bradley M. Kuhn
5305642e4d Formatting adaptations for Ledger 3.
This includes addition of currency-forcing options such as -V and -X $,
as well as corrections to the formatting string options for Ledger 3.
2012-11-26 13:54:43 -05:00
Bradley M. Kuhn
cf969fcbb4 Formatting changes, and added total for restricted funds. 2012-11-26 13:54:43 -05:00
Bradley M. Kuhn
9051804fb1 Fixed formatting and added sanity check code. 2012-11-26 13:54:43 -05:00
Bradley M. Kuhn
daad6e5700 Added income/expense summing. 2012-11-26 13:54:43 -05:00
Bradley M. Kuhn
55227e4d2c Fix ledger options and be sure starting is set to zero for new funds. 2012-11-26 13:54:43 -05:00
Bradley M. Kuhn
6a3b25f85b Began fund-report.plx, which started as a copy of trial-balance-report.plx.
The revision history of trial-balance-report.plx can be found in the following location:
  http://gitorious.org/bkuhn/small-hacks/blobs/history/master/trial-balance-report.plx
2012-11-26 13:54:43 -05:00
Bradley M. Kuhn
b5316132d4 MANIFEST output file that indicates which files are mentioned in general-ledger.
Due to reporting options given to ledger, not every file will be
referenced by the general-ledger spreadsheet.  The generated MANIFEST file
now indicates which files were actually referenced in the general-ledger.

The demo.sh script now uses this MANIFEST to create a zip file that
contains only those files.
2012-11-26 13:54:42 -05:00
Bradley M. Kuhn
01dc0416b9 Support a broader set of possible tags to be placed into the spreadsheet.
I've now made a hard-coded list of potential tags that are supported and
will be linked to in the general ledger spreadsheet.  This list should
probably be in a configuration file of some sort eventually, rather than
hard coded.

Indeed, note that the hard-coding goes into two different scripts, and
thus the lists could easily get out of sync.
2012-11-26 13:54:42 -05:00
Bradley M. Kuhn
287a756ab6 New test data for increasing the set of possible tags.
I use more tags than just Invoice and Receipt, so I'd like this to support
more than just two.  Here's some test data showing other tags that I use.
2012-11-26 13:54:42 -05:00
adamsrl
2b7f7b7f90 Moved over some shortcut functions 2012-10-15 13:41:20 -05:00
Bradley M. Kuhn
613eb6ba71 Receipt/Invoice are additional information thus better if they're final columns.
Change the column of Receipt and Invoice in the CSV file first, then the
generated ODS file must have the same change propagated, which requires
changes to the column numbers hard-coding in csv2ods.py.

Perhaps if/when this application is refactored these things shouldn't be
hard-coded in this way in the first place.
2012-09-08 14:34:15 -04:00
Tom Marble
47130b2dfb First pass technical study of creating ODS from ledger 2012-09-08 00:30:37 -05:00
Bradley M. Kuhn
fb601e2a65 Updated copyright notice to reflect reality.
Both Tom and I have made copyrightable changes to this file this year.
2012-09-07 15:06:18 -04:00