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
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
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
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