Johann Klähn
0a1ff03542
fix bug 788: behaviour of source_context for '-f -'
...
`session_t::read_data` did not set context.pathname to `/dev/stdin`
for the special case `-f -`. I chose to adjust `source_context` too
as there is no sensible context if no file name is provided.
2013-01-15 23:03:39 +01:00
Johann Klähn
a633bc7fce
add unit tests for amount_t→floor/ceil
2013-01-15 21:17:11 +01:00
Johann Klähn
2b1cfd6706
remove superfluous 'break'
2013-01-15 21:17:03 +01:00
Johann Klähn
428490e917
fix for 'store absolute paths internally'
...
`parent_path` was called on unprocessed path
so neither `resolve_path` nor `filesystem::absolute` had any effect.
2013-01-15 21:16:15 +01:00
Craig Earls
856f4b673c
Merge remote-tracking branch 'upstream/next' into next
2013-01-14 21:56:33 -08:00
John Wiegley
d4df36a598
Merge pull request #121 from kljohann/cmake.doxy
...
repair doxygen support
2013-01-14 14:44:54 -08:00
Johann Klähn
b13f0c33c3
repair doxygen support
2013-01-14 23:39:34 +01:00
John Wiegley
3af432d330
Merge pull request #120 from kljohann/cmake.docs
...
fix issue for separate build dir
2013-01-14 14:04:00 -08:00
Johann Klähn
dd105fecd7
fix issue for separate build dir
2013-01-14 22:59:35 +01:00
John Wiegley
bf8b7e47e6
Merge pull request #119 from kljohann/cmake.docs
...
convert doc/Makefile to CMake
2013-01-14 12:44:08 -08:00
Johann Klähn
c88862fd66
convert doc/Makefile to CMake
...
CMake will build the pdf version of the manual if texi2pdf is installed.
It will be installed to DOCDIR/ledger{,3}.pdf, for example
/usr/local/share/ledger/ledger3.pdf.
Also, the man page will be installed to MANDIR/man1/ledger.1
The option BUILD_DOCS is now on by default.
A new option BUILD_WEB_DOCS is used to toggle the generation
of the html version of the manual and the man page (off by default).
All this is added to the 'doc' make target.
2013-01-14 21:35:26 +01:00
Simon Michael
0790920424
Merge branch 'next' of github.com:ledger/ledger into next
2013-01-11 10:12:42 -08:00
Simon Michael
ea09a8d507
escape @ characters properly so they show up
2013-01-11 10:07:58 -08:00
John Wiegley
aba0a5ed2d
Improvement to account alias expansion
...
Aliases are now expanded not only if they occur by themselves, but also
if they occur as the beginning of a multi-part account. Given <alias
Food=Expenses:Food> the account <Food:Tomatos> should now be expanded to
<Expenses:Food:Tomatos>.
2013-01-11 07:08:51 -06:00
John Wiegley
82ac7ef313
Guard against a possible NULL
2013-01-11 00:10:30 -06:00
Craig Earls
67a598f6ff
Bug551 fixed, commodities and accounts now sort
...
Added two compare structs for std::map to use. I tried to override
the < operator got a clean compile but map wasn't picking it up, I
couldn't figure out why so I took the less elegant route.
2013-01-07 20:15:49 -07:00
Bradley M. Kuhn
9d78dc6395
The restricted fund report has been almost entirely rewritten.
...
The previous version was somewhat confusing anyway. Now it builds a
relatively clear spreadsheet of all categories. It also now outputs CSV.
2013-01-06 19:48:22 -05:00
Bradley M. Kuhn
8cddda4c3e
More flexible CSV -> ODS hyperlinks and pagebreaks; csv2ods.py produces MANIFEST.
...
Previous version of csv2ods.py simply assumed that fields beyond five
would have links to files. This obviously lacked flexibility and was a
silly hard-code. Now, those CSV fields that have link:SOMETHING will
cause a hyperlink to be created to SOMETHING.
Meanwhile, the pagebreak support was similarly hard-coded. Now, any CSV
field that has the word "pagebreak" in it will generate a pagebreak.
The general ledger and cash receipts/disbursement journals have been
modified to make use of these new features in csv2ods.py.
Finally, the --skip-page-break option is now moot in csv2ods.py, so that
is herein removed.
2013-01-06 19:43:54 -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
2142a36c1c
Completed report on unpaid accruals.
2013-01-06 19:28:21 -05:00
Bradley M. Kuhn
39db5bbce7
Ordering of options had always been incorrect on this call; Fixed.
2013-01-06 08:21:35 -05:00
Bradley M. Kuhn
b04fbb1b73
First crack at an unpaid accruals report.
2013-01-05 17:40:22 -05:00
Bradley M. Kuhn
4290a4ec52
Add balances for permanent (i.e., asset) accounts.
...
Based on a request from our accountants, I've changed the RUNNING TOTAL
field (which is generally useless to accountants anyway) to be a BALANCE
amount for starting and ending accounts.
2013-01-05 13:13:05 -05:00
Bradley M. Kuhn
2b237aa3ba
MANIFEST file is now also generated by general-ledger report.
...
We should give the sample MANIFEST for users that want to make sure they
got the script working properly, and to show the sample output.
2013-01-04 12:24:30 -05:00
Bradley M. Kuhn
87f0c4434d
Updated expected test output data for general-ledger report.
2013-01-04 12:23:37 -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
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
John Wiegley
63a14fd5e0
Merge pull request #113 from OpenTechStrategies/year-cmd-directive-doc-fix
...
Update obsolete wording in documentation for 'year' command directive.
2012-12-16 14:12:07 -08:00
Karl Fogel
2823c99107
Update obsolete wording in documentation for 'year' command directive.
2012-12-16 15:31:32 -06:00
John Wiegley
edc272b7a0
Merge pull request #110 from bkuhn/update-contrib-non-profit-annual-audit-reports_2012-11-26
...
Update to contrib/non-profit-audit-reports/ scripts.
2012-11-26 10:58:17 -08: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