Commit graph

3128 commits

Author SHA1 Message Date
John Wiegley
fe95280492 Added some preliminary code for convert CSV to Ledger 2010-03-05 22:14:14 -05:00
John Wiegley
3318722089 Added new "payee" and "capture" directives
The payee directive allows for transformation of payee names during the
parsing of a Ledger file.  This means you can record the payee name in
one form, but always have it reported in another form.  The syntax is
(and will be):

payee PAYEE_NAME  REGEXP

or

payee PAYEE_NAME
  REGEXP1
  REGEXP2
  ...

The account directive sets the account automatically based on the payee
iff the base account name is Unknown.  For example, if you have a bunch
of transaction in Expenses:Unknown, you can assign accounts for several
automatically using:

account ACCOUNT_NAME  PAYEE_REGEXP

or

account ACCOUNT_NAME
  PAYEE_REGEXP1
  PAYEE_REGEXP2
  ...
2010-03-05 22:14:14 -05:00
John Wiegley
dc1b390720 Make the manual encoding be utf-8 2010-03-05 22:14:14 -05:00
John Wiegley
fd4fa8a114 Change an exception test to a plain if 2010-03-05 22:14:14 -05:00
John Wiegley
5850d041b6 Improved Makefile rule for generating system.hh.gch 2010-03-05 22:14:13 -05:00
John Wiegley
ab416f759f Updated copyrights to 2003-2010 2010-03-05 22:14:10 -05:00
John Wiegley
ece6cf68f4 Started on some macros for writing the manual 2010-03-05 22:04:14 -05:00
John Wiegley
3bb4cb6b60 Merge branch 'next' 2010-03-04 15:20:49 -05:00
John Wiegley
9143fbcdf1 Merge remote branch 'kljohann/master' into next 2010-03-04 13:41:35 -05:00
John Wiegley
e5f4d54f14 Merge remote branch 'thefloweringash/master' into next 2010-03-04 13:41:14 -05:00
John Wiegley
192972f854 Renamed the "args" command to "query" 2010-03-04 13:37:08 -05:00
Johann Klähn
020c3fb2b6 vim. ledger command can be changed 2010-02-22 13:07:39 +01:00
Johann Klähn
eafc23bd4e vim. Add quickfix support 2010-02-21 19:48:17 +01:00
Johann Klähn
50889bf2b8 vim. polish syntax highlighting 2010-02-21 19:48:00 +01:00
Andrew Childs
a8333c3bd2 Support entries with effective dates in ledger-iterate-entries 2010-02-07 01:58:10 +13:00
John Wiegley
5471370960 Merge branch 'next' 2010-02-05 05:35:14 -05:00
John Wiegley
69da18cd30 Some minor refactoring of the textual parser 2010-02-05 00:00:40 -05:00
John Wiegley
40eae8bf94 Reformatted a comment 2010-02-05 00:00:40 -05:00
John Wiegley
313c88a656 Added post_t::compare_by_date_and_sequence comparator 2010-02-05 00:00:40 -05:00
John Wiegley
6870c54644 Refactored some comparison helper classes 2010-02-05 00:00:38 -05:00
John Wiegley
9d61d3d621 Added actual_date() methods for items 2010-02-05 00:00:29 -05:00
John Wiegley
b78e22d52b Added a "seq" sequence property for all items
This indicates the absolute parsing order of every transaction and
posting.  It is 0 for generated items.
2010-02-04 18:23:52 -05:00
John Wiegley
c92a54b0ab Always configure the environment in phase_config 2010-02-04 18:03:28 -05:00
John Wiegley
ac9a84463d Fixed tests relative to recent --pivot change 2010-02-04 04:23:27 -05:00
John Wiegley
d8c6fd7010 Removed doc/Ledger.scriv 2010-02-04 04:23:17 -05:00
John Wiegley
428a2b4019 Improved the behavior of pivot reports 2010-02-04 04:12:19 -05:00
John Wiegley
7533cf7ddb FMoved up to Boost 1.42 2010-02-04 04:11:51 -05:00
John Wiegley
1413085977 Added a --pivot=TAG option
This is equivalent to the following:

  --account='"TAG:" + tag(/TAG/)'
2010-02-02 17:07:05 -05:00
John Wiegley
a56a1db662 When creating temporary accounts, transfer flags 2010-02-02 16:25:46 -05:00
John Wiegley
b76aea7c0b Added a debug statement for report.predicate 2010-02-02 16:25:31 -05:00
John Wiegley
0be486c58b Fixed assertion failure in -M -A bal report 2010-01-21 04:59:45 -05:00
John Wiegley
d406aeb85d Guard against divide by zero error in -A reg report 2010-01-21 04:57:15 -05:00
John Wiegley
61edd3d8f4 Fixed account display bug in the balance report 2010-01-21 04:55:11 -05:00
John Wiegley
590ba76bd1 Restore "-p this" option (aka -p 'this month') 2010-01-21 04:33:56 -05:00
John Wiegley
0a3d66c5d6 New acprep options for locating which Boost to use
--boost-home     include and lib paths can usually be found from this
  --boost-suffix   provides the library suffix, should start with '-'
  --boost-include  the explicit include directory to use
  --boost-lib      the explicit library directory to use

Also, much better checking up front to determine if Boost is even
available.
2010-01-21 02:36:07 -05:00
John Wiegley
03de3273c9 Report an error if acprep is given an unknown phase 2010-01-21 01:27:08 -05:00
John Wiegley
c6873d32aa Merge branch 'next' 2010-01-18 12:54:41 -05:00
John Wiegley
67ce17e249 Guard against using an uninitialized value
Fixes DDB54BB8-8C1C-4129-A137-07A38068F3BE
2010-01-18 03:41:20 -05:00
John Wiegley
b3a3ecccf2 Fixed the guard test for calling setup_for_johnw 2010-01-17 16:50:20 -05:00
John Wiegley
d176abf625 Fix for date parsing when no year is given 2010-01-16 21:12:13 -05:00
John Wiegley
2919710a82 Fix in acprep to the way Boost is found 2010-01-16 21:06:54 -05:00
John Wiegley
e3c8b91b5f Merge branch 'next' 2009-12-09 14:03:57 -05:00
John Wiegley
f1a2a5a18d Cost of a post with neg. amount should be negative 2009-12-07 21:23:50 -05:00
John Wiegley
6d0ab845ea Allow relative includes in the current directory 2009-12-07 20:43:17 -05:00
John Wiegley
12db51e6bb Merge branch 'next' 2009-11-30 16:32:06 -05:00
John Wiegley
ad1343299a Merge branch 'maint' into next 2009-11-30 16:31:22 -05:00
John Wiegley
71fe07a037 Merged in all tags, to unite development history
Merge commit 'v2.4.1';
      commit 'v2.5';
      commit 'v2.6.1';
      commit 'v2.6.2';
      commit 'cpp-rewrite-2006' into next
2009-11-30 16:29:04 -05:00
John Wiegley
26fffc375c tools/push now uses -j16 for building opt 2009-11-30 16:23:49 -05:00
John Wiegley
e8a14d31b6 Merge branch 'next' 2009-11-25 14:20:07 -05:00
Aristid Breitkreuz
a3338a2a67 Added baseline tests for unrealized options
This includes another baseline test for --unrealized, and also new ones
for --unrealized-gains and --unrealized-losses.
2009-11-25 04:50:36 -05:00