Commit graph

4296 commits

Author SHA1 Message Date
Craig Earls
4b261f99bc Fixes Bug 695, ledger ignores --init-file
Handle --init-file as a special command option like the debug options.
That wway we can have the argument captured before teh global scope is
created.
2012-10-25 10:39:48 -07:00
Craig Earls
41cc9a7f3c Added filebase and filepath values
'filename' returns the complete path/filename of the file containg the current xact.
This is inconvenient for some displays.  filebase returns only the base name. For
completeness added filepath as well.
2012-10-23 14:10:19 -07:00
Craig Earls
14dcb27777 Implemented Bug551 Automatic Transactions are cleared base on parent 2012-10-23 13:07:39 -07:00
Craig Earls
b1661b6c90 Merge branch 'next' of https://github.com/jwiegley/ledger into next 2012-10-23 12:10:14 -07:00
Craig Earls
3dc538189e Formatting cleanup 2012-10-23 12:04:07 -07:00
John Wiegley
cffa343d71 Merge pull request #91 from kljohann/tests.interactive
provide immediate feedback in test runner
2012-10-22 11:19:11 -07:00
Johann Klähn
9a2f440496 provide immediate feedback in test runner 2012-10-22 10:11:56 +02:00
Craig Earls
12c7ac7a4b Added --quiet options to clean up the texi2pdt output 2012-10-19 18:43:03 +02:00
Craig Earls
6b5fb0da73 Reformatted tables and moved date formatting code section 2012-10-19 04:00:13 +02:00
Craig Earls
a110ec0af2 Merge branch 'next' of https://github.com/jwiegley/ledger into next 2012-10-19 02:24:05 +02:00
Johann Klähn
08033e6d50 fix test runner if filename is specified
If the command line switch "-f" is used the test runner will
not pass the file name of the test file to ledger.
The line "test -f /dev/null" as used in test/baseline/cmd-convert.test
did not work as intended before this.
Also using "-f - " did not work as "$ledger" was noti
prepended to the command.
2012-10-18 13:45:40 -07:00
Johann Klähn
49b02614a3 fix account mapping in csv conversion
By using payees_for_unknown_accounts instead of account_mappings in
csv.cc ledger will have the same behaviour as in `ledger -f - print`
in that it uses payee fields in account directives to rewrite the
account.
2012-10-18 13:45:40 -07:00
Craig Earls
c51ad98a66 Fixe emacs command chapter heading 2012-10-13 08:16:39 -07:00
Craig Earls
0d90de44b6 Added more details to the convert command as provide by Johan Klahn 2012-10-13 07:48:00 -07:00
Craig Earls
f1c459b80c Fixed several typos and cleaned up formatting 2012-10-12 06:56:21 -07:00
Craig Earls
8c7ac50fd8 formatting and grammar cleanup 2012-10-10 21:21:00 -07:00
Craig Earls
d7a03c4716 Detailed section on the new commodity valuation system. 2012-10-10 09:43:16 -07:00
Craig Earls
25f063ab7c Fixes bug 801. Replaces "jorunal" with Ledger on line 235 of ledger3.texi 2012-10-10 07:31:17 -07:00
Craig Earls
8bb5bae7a9 Filled in many blank entries
Also reformatted the option lists to be more like the GCC manual
2012-10-09 16:09:09 -07:00
Craig Earls
ecc91c6b95 Corrected a few missing @ symbols per Jeroen 2012-10-04 06:25:18 -07:00
Craig Earls
1ebc014f55 correcte --period-sort arguments in section 7.3.1 2012-10-03 12:23:21 -07:00
John Wiegley
46986ed4b1 Merge pull request #84 from bkuhn/bug-492
Regression tests for Bug 492
2012-10-03 08:22:37 -07:00
Bradley M. Kuhn
bf7375db11 Rounding is different for balance totals vs. postings when using posting costs.
test/regress/CAE63F5C-b.test and test/regress/CAE63F5C-c.test should both
pass, but test/regress/CAE63F5C-c.test does not, because the total line of
$6.46 is rounded wrong; it should be $6.45.

There seems to be different rounding occurring for totals vs. postings.

This seems to be related to Bug #492.
2012-09-30 14:53:05 -04:00
Paolo Capriotti
e56a4ffef0 Running totals on a report including automated transactions are computed with extra precision,
resulting in balances differing from the sum of their components.
2012-09-30 14:46:51 -04:00
John Wiegley
dcd64a6782 Added -N/--ninja option to acprep 2012-09-27 17:42:43 -05:00
John Wiegley
a9bd40a1e3 Don't use the ninja build command by default 2012-09-27 17:40:17 -05:00
John Wiegley
300cefd1a7 Changes to support using homebrew and ninja 2012-09-26 12:25:26 -05:00
John Wiegley
7c288b956d Changes for CMake 2012-09-21 15:12:38 -05:00
John Wiegley
f995d143c5 Merge pull request #82 from bkuhn/doc-fixed-directive
Documentation for the fixed directive.
2012-09-18 00:11:01 -07:00
Bradley M. Kuhn
06356ebf90 Make reference and link to Bug Report #789 in fixed directive documentation.
Due to weirdness that's currently true with the existing next branch of
ledger, I believe it's important to tell users in the documentation that
there are some discrepancies in the 'fixed' directive behavior.

The documentation from my previous commit is written to explain what
'fixed' *should* do; adding the bug report link here is a placeholder to
tell users that it may not do what they think it does.

Obviously, if someone closes #789, they should remove this paragraph added
herein.  But, if the bug report is closed, but the documentation lags
behind, the worst that happens is some users have to click through to see
the bug is closed.
2012-09-14 16:54:12 -04:00
Bradley M. Kuhn
438806ac71 Documentation for the fixed directive.
Based on conversation with johnw on IRC, I believe this text properly
documents the intended feature of the fixed directive.
2012-09-14 16:39:41 -04:00
Bradley M. Kuhn
ccf10e2060 Created Fixated prices node.
There was a Fixated prices section, but no Fixated prices node.
This of course required an update of nodes and menus throughout chapter.
2012-09-14 16:35:46 -04:00
John Wiegley
d48560919a Merge pull request #81 from bkuhn/doc-small-improvements
Document "Data File Parsing Information" format strings.
2012-09-09 21:45:08 -07:00
Bradley M. Kuhn
137183d19f Fixed typo: removed extra @tab. 2012-09-10 00:12:51 -04:00
Bradley M. Kuhn
fa89dc16a6 Document "Data File Parsing Information" format strings.
Based on my reading of src/format.cc and inspection of output on some test
data, I believe this is adequate documentation for these format strings.
2012-09-10 00:08:59 -04:00
John Wiegley
d1fadf07a8 Merge pull request #80 from bkuhn/contrib-non-profit-annual-audit-reports
Contrib: non-profit annual audit reports
2012-09-09 13:21:57 -07:00
John Wiegley
6ed2c5db4e Merge pull request #79 from bkuhn/gitignore-ledger3-info
doc/ledger3.info should be ignored.
2012-09-09 13:18:46 -07:00
Bradley M. Kuhn
71f351d618 doc/ledger3.info should be ignored.
doc/ledger3.info was probably missing from the .gitignore because
ledger3.info isn't build automatically yet, but might as well add it to
.gitignore for those who are building it by hand at the moment.
2012-09-08 14:40:30 -04: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
Bradley M. Kuhn
8dd41dc9e7 Add to .gitignore items generated by contrib/non-profit-audit-reports/demo.sh 2012-09-08 14:31:36 -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
Bradley M. Kuhn
7f565df353 Added additional transaction to test data, this one has both Receipt and Invoice. 2012-09-07 15:04:44 -04:00
Bradley M. Kuhn
b9e534d372 Fixed 2010/01/01 test data and added an invoice for it. 2012-09-07 14:58:36 -04:00
Bradley M. Kuhn
8900ba0503 Merge branch 'contrib-non-profit-annual-audit-reports' of gitorious.org:ledger/ledger into contrib-non-profit-annual-audit-reports 2012-09-07 14:27:47 -04:00
Tom Marble
65e0c266be Changed general-ledger-report.plx to use tags for Receipt and Invoice (was %N)
Added sample PDF artifacts for the example (see README)
2012-09-07 13:24:26 -05:00
Bradley M. Kuhn
5aea0446e1 Don't use all caps for tags in test data. 2012-09-07 13:17:15 -04:00
Bradley M. Kuhn
ca77b08fcc Make test data slightly more realistic. 2012-09-07 12:49:31 -04:00
Bradley M. Kuhn
fb6f60477f There needs to be at least 3 args here, clearly. 2012-09-07 12:48:51 -04:00
Bradley M. Kuhn
0e8a0e8fb2 A few fixes to make this work with Ledger 3.x instead of 2.6.2
* --wide-register-format is no long an option, use -F
  * %D now must be %(date)
2012-09-07 12:48:30 -04:00