John Wiegley
5da1e7756d
Added new option --inject=KEY[,KEY...]
...
If you have a typed metadata key which contains an amount, you can use
--inject=KEY to inject a posting with that amount wherever a match
occurs. There are two main forms of usage:
2010-06-18 Sample
; Key:: $100
Expenses:Food $100.00
Assets:Checking
The command would be:
ledger reg --inject=Key
In the above, transactional form, a posting under the account "Key" will
be injected before the first posting reported for this transaction.
It's amount will be $100. This only happens once for the whole
transaction.
It is also possible to associate the key with a posting:
2010-06-18 Sample
Expenses:Food $100.00
; Key:: $100
Assets:Checking
Now the injected posting is generated whenever that particular post is
reported.
2010-06-18 02:28:12 -04:00
John Wiegley
35ca4f0bb0
Ensure that all options are tested and documented
2010-06-15 18:19:54 -04:00
John Wiegley
34fcc62b4d
Removed unused --unsorted option
2010-06-15 04:34:16 -04:00
John Wiegley
c367dcab82
Improved algorithm for abbreviating account names
2010-06-14 07:20:23 -04:00
John Wiegley
e78af146e8
Corrected bug with forecasting date bounded xacts
2010-06-13 23:41:50 -04:00
John Wiegley
a1fc3c5cfe
The --anon option now randomizes its effect
2010-06-12 14:43:40 -04:00
John Wiegley
c28fad384c
The --anon option now anonymizes commodities
...
Fixes #227 / 1C90D8AF-830E-43C2-A5B7-D382F68EBDE3
2010-06-09 07:47:45 -04:00
John Wiegley
c85cf0d810
Fixed the way prices and costs are print'd
2010-06-07 08:32:14 -04:00
John Wiegley
39f9854e2c
Reworked the way that <Rounding> entries are shown
...
Fixes #188 / 53BCED29-F3B9-4E02-9A35-6C739ABB9662
2010-06-06 06:20:07 -04:00
John Wiegley
038c24357e
Changed --european option to --decimal-comma
...
Fixes #211 / 1736ACA5-5DE6-4826-AEB4-DB5B2A2217AC
2010-06-01 17:56:41 -04:00
John Wiegley
654c842348
-G option now takes price history into account
2010-05-30 21:58:05 -06:00
John Wiegley
5a2644c1b7
-V/-X options now take price history into account
2010-05-30 20:49:50 -06:00
John Wiegley
4f3b39e22c
Empty notes and tags now return null values
2010-05-30 03:01:11 -06:00
John Wiegley
dd8f4ce88f
Added a new baseline test for the print command
2010-05-23 17:04:00 -06: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
75b7294a6d
Rewrite the "print" command as a custom function
...
There ended up being too many corner cases for the generalized formatter
to handle.
2010-03-08 01:11:48 -05:00
John Wiegley
ac9a84463d
Fixed tests relative to recent --pivot change
2010-02-04 04:23:27 -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
John Wiegley
a84c42fc17
Fixed regression tests relating to b1d6ea876c
2009-11-24 04:15:21 -05:00
John Wiegley
ef5c0b37d5
Added baseline test for "sample.dat" contents
2009-11-20 18:24:22 -05:00
John Wiegley
63fee4c837
Added an --unrealized option, for use with bal -V
...
When this option is on, then in balance report which show market values,
any gains or losses in value will be balanced into a pair of accounts
called Equity:Unrealized Gains and Equity:Unrealized Losses.
2009-11-19 02:00:10 -05:00
John Wiegley
ee93b5c740
Added baseline test for reg -n
2009-11-14 02:32:18 -05:00
John Wiegley
c182b7051b
Renamed the pricesdb command to pricedb
2009-11-12 01:43:57 -05:00
John Wiegley
39532bdf35
Automated transactions now use report query syntax
...
This returns their behavior back very close to what 2.x accepts.
2009-11-10 02:44:16 -05:00
John Wiegley
832e53f300
Column widths are always calculated now
2009-11-07 05:17:00 -05:00
John Wiegley
a05d39b722
Renamed --set-reported-account to just --account
...
This fits better with the --amount and --total options, which both
change the amount and total used for calculation. Same with --account:
it happens after filtering, but before calculation so that balance
reports look as you'd expect.
2009-11-06 02:39:30 -05:00
John Wiegley
4a249d6172
Fixed issues with period strings like "2009/10"
2009-11-02 01:59:24 -05:00
John Wiegley
307b63be77
Fixed baseline tests relating to earlier changes
2009-11-02 00:32:34 -05:00
John Wiegley
55f5868380
Setting --date-format in ~/.ledgerrc works again
2009-10-29 00:52:51 -04:00
John Wiegley
559566751d
Sort by default unless --unsorted is selected
2009-10-28 01:17:10 -04:00
John Wiegley
ab433d28e0
Support a --now option, for testing purposes
...
This sets Ledger's notion of the "current time" to the given date. This
makes it possible to have stable output from budgeting and forecasting
reports, for the sake of baseline tests.
2009-10-27 21:32:55 -04:00
John Wiegley
fc84eeb358
Rewrote the way date and time I/O is managed
2009-10-25 05:01:47 -04:00
John Wiegley
1a8e835bfe
Disabled the --seed regression test
...
There is already a much more comprehensive test for "generate --seed".
2009-10-11 05:10:43 -04:00
John Wiegley
6e582a8777
Added four missing baseline tests
2009-06-28 15:51:05 +01:00
John Wiegley
7b05595699
Improved usefulness of the "print --anon" output
2009-06-27 01:45:31 +01:00
John Wiegley
2ef1934bb0
Restored --price option, added baseline test
...
This option reports only in terms of the annotated price of the
commodities involved, otherwise it reports the amounts themselves. It
can be used in conjunction with other reports, as it applies to the
displayed amounts, not the actual amounts being calculated.
2009-06-26 17:15:35 +01:00
John Wiegley
127e5e7ad2
Added baseline test for --only
2009-06-21 20:33:30 +01:00
John Wiegley
8cb80185d5
Restored the --truncate option, added baseline test
2009-06-21 19:06:07 +01:00
John Wiegley
c1307445c1
Added baseline: --sort, --sort-all, --sort-xacts
2009-06-21 18:52:01 +01:00
John Wiegley
f83a1c8873
Restored --unround, added baseline test
2009-06-21 18:37:39 +01:00
John Wiegley
ba0dd89356
Added baseline: --subtotal, --total-data, --total
2009-06-21 18:08:55 +01:00
John Wiegley
521b935aa8
Restored --percent option, added baseline test
2009-06-21 18:07:27 +01:00
John Wiegley
add2ffd5f3
Added baseline tests for --lot-tags and --lots-actual
2009-06-19 20:52:24 +01:00
John Wiegley
189bbd1546
Added baseline test for --limit
2009-06-19 20:40:15 +01:00
John Wiegley
1dc21c2d34
Added baseline test for --seed
2009-06-18 18:42:48 +01:00
John Wiegley
56555f3870
Added baseline tests for --related, --related-all
2009-06-18 16:20:22 +01:00
John Wiegley
af8eeb34db
Added baseline test for --quantity
2009-06-18 16:18:35 +01:00
John Wiegley
6dd362dfde
Added baseline tests for --print,register-format
2009-06-18 16:12:27 +01:00
John Wiegley
8d97adec7b
Restored --plot-amount-format, --plot-total-format
2009-06-18 16:08:43 +01:00
John Wiegley
8dbf458e14
Restored --prices-format options
2009-06-18 01:50:06 +01:00