Commit graph

3186 commits

Author SHA1 Message Date
John Wiegley
a158dc123b Minor change to setup_for_johnw in acprep 2010-05-22 21:35:02 -04:00
John Wiegley
02e7825516 Option --count sums payees, account, commodities 2010-05-22 21:35:02 -04:00
John Wiegley
de3803d027 Added new commands: acounts, payees, commodities
These three reports simply dump an unordered list (with the exception of
payees) shows all accounts, payees, and commodities represented in a
given report.  This can be used to easily generate per-entity report,
for example:

  ledger payees | \
  while read payee; do \
    echo ; echo $payee ; \
    ledger reg payee "$payee" ; \
  done
2010-05-22 21:35:02 -04:00
John Wiegley
e3ba0117a3 Updated NEWS file that there will be less news 2010-05-22 21:35:02 -04:00
John Wiegley
a596727d3d Interpolate uses of $account in automated postings
Fixes 5CB52887-408E-48F0-8798-3C640D0295B3
2010-05-22 21:35:02 -04:00
John Wiegley
68056c1948 Guard against NULL value passed to "end" directive
Fixes 89233B6D-CB21-4162-98E3-BE38B9336070
2010-05-22 21:35:01 -04:00
John Wiegley
8d4de77836 emacs command was referencing uninitialized values
Fixes 7B54CF80-45A4-4D50-A8D3-63272D60FA1B
2010-05-22 21:34:58 -04:00
John Wiegley
57abfd7ef8 Temporary accounts were referenced after deletion
Fixes D53C98E5-506D-4CE5-91A3-7666FD33B65B
2010-05-22 21:33:47 -04:00
John Wiegley
9061db8e47 phase_patch in acprep is no longer needed
This is because AM_SILENT_RULES is now used in configure.ac.
2010-05-22 13:08:30 -04:00
John Wiegley
47bfe58ab3 Added account_id and xact_id valexpr vars for posts
account_id is the "whicheth" number for that posting within its
account.  The xact_id is within its transaction.
2010-05-18 17:37:27 -04:00
John Wiegley
017492ef5e Merge branch 'next' 2010-05-16 08:11:49 -04:00
Priit Laes
08e7d36b71 Enable silent build rules 2010-05-13 07:54:16 -04:00
John Wiegley
ff122597e8 Revert "Support entries with effective dates in ledger-iterate-entries"
This reverts commit a8333c3bd2.
2010-05-13 00:14:04 -04:00
John Wiegley
5f1a858941 Merge branch 'next' 2010-05-12 04:32:02 -04:00
John Wiegley
cb047c013d A string was not terminated with a NUL. 2010-05-12 03:12:31 -04:00
John Wiegley
04cfa7ab71 Added more iterator methods to call_scope_t 2010-05-08 02:24:36 -04:00
John Wiegley
4ec54b86f8 Added any() and all() value expression macros
any() matches an expression against every post in a transaction or
account, and returns true if any of them are true.  all() tests if all
are true.  For example:

  ledger -l 'account =~ /Expense/ & any(account =~ /MasterCard/)' reg

This reports every posting affecting an Expense account (regex match),
but only if some other posting in the same transaction affects the
MasterCard account.

Both functions also take a second boolean argument.  If it is false, the
"source" posting is not considered.  For example:

  ledger -l 'any(/x/, false)'

This matches any posting where a *different* posting in the same
transaction contains the letter 'x'.
2010-05-08 02:06:06 -04:00
John Wiegley
d5f8c3bc57 Added O_EXPAND operator, to handle macros 2010-05-08 02:02:10 -04:00
John Wiegley
713f308d0f interactive_t now takes an "X" for expressions 2010-05-08 02:01:59 -04:00
John Wiegley
8acdb85a91 Added a simple print() value expression function
This is really for debugging more than anything else.
2010-05-08 02:01:23 -04:00
John Wiegley
2d28b34ff3 Allow expr_t& to be passed in a value_t 2010-05-08 02:00:35 -04:00
John Wiegley
4028f0bcb4 print command correctly prints amount expressions 2010-05-07 23:16:45 -04:00
John Wiegley
d0460b0692 The --invert option now works with "convert" 2010-05-07 22:57:55 -04:00
John Wiegley
d728e1364a Make sure ldg-new.el loads correctly 2010-05-07 22:57:05 -04:00
John Wiegley
7f5c1c81a1 Added some missing autoloads for the new ledger-mode 2010-05-02 23:50:17 -04:00
John Wiegley
056994497e Some more refactoring of the new Lisp code 2010-04-12 23:10:07 -04:00
John Wiegley
bd8e6686f2 Broke up the old ledger.el into several submodules 2010-04-12 22:32:12 -04:00
John Wiegley
eb99efd2dd Cleanup the ldg-post code a little bit 2010-04-12 22:31:46 -04:00
John Wiegley
fff15425d8 lisp/ledger.el is now deprecated (until release)
The new code, still under development, starts in ldg-new.el.  When it is
ready to replace the old code, it will be renamed to ledger.el.
2010-04-12 22:31:28 -04:00
John Wiegley
2f2340d0ac Fixes to ledger-mode regexps 2010-04-12 22:30:42 -04:00
John Wiegley
2af1360042 Rewrote ldg-regex with a macro (for simplicity) 2010-04-12 03:49:44 -04:00
John Wiegley
7ca8149ec5 Merge branch 'next' 2010-03-17 06:22:43 -04:00
John Wiegley
8dd362b57c The include directive now supports file globbing
This only happens at the base filename, not for any of the directory
names for now.
2010-03-17 02:40:42 -04:00
John Wiegley
36b616da5e Added new --meta and --meta-width options
The usages are:

  --meta=<TAG>        prepend value of TAG before every line
  --meta-width=<NUM>  force the meta column to be NUM wide
  --meta=<TAG>:<NUM>  shortcut that also applies --meta-width
2010-03-17 02:20:08 -04:00
John Wiegley
d7b8095c3d Tags were not being set properly on postings 2010-03-17 02:18:46 -04:00
John Wiegley
0e34d08b8d The --pivot=X option now only matches the tag "X" 2010-03-17 00:56:21 -04:00
John Wiegley
ba09f29a3c Added code to ldg-texi (for now) to update tests 2010-03-17 00:49:14 -04:00
John Wiegley
01c3eb8547 Improved the new implementation of "print" 2010-03-17 00:49:14 -04:00
John Wiegley
91f839e827 Do not implicitly sort register output
The switches the default back to the same as 2.x, which is --unsorted.
2010-03-17 00:49:11 -04:00
John Wiegley
2f9ea39869 Short-circuit --head handler when count is reached 2010-03-16 14:20:09 -04:00
John Wiegley
3e21a171c7 Updated current version of ledger.el to 1.3 2010-03-15 01:28:01 -04:00
John Wiegley
87ad6f52f8 ldg-texi.el now auto-generates regression tests 2010-03-15 01:27:52 -04:00
John Wiegley
a5d99cc9d3 Renamed ldg-account.el to ldg-post.el 2010-03-15 01:27:36 -04:00
John Wiegley
f672ddafc3 Created lisp/ldg-account.el 2010-03-11 00:36:43 -05:00
John Wiegley
7e719c42dc Extended regexp syntax for "payee" and "capture" 2010-03-10 03:56:34 -05:00
John Wiegley
25c72d6e23 Commented out the date limiter in the lookup code 2010-03-10 03:56:20 -05:00
John Wiegley
9a0ae50ce7 When deriving, don't carry over the code or not 2010-03-10 03:56:08 -05:00
John Wiegley
8f06e75e05 Began writing lisp/ldg-regex.el 2010-03-10 03:55:47 -05:00
John Wiegley
94c30dcf7f Cleaned up the intelligent lookup algorithm a bit 2010-03-10 01:42:25 -05:00
John Wiegley
4858725377 Corrected a debug string 2010-03-10 01:42:03 -05:00