Commit graph

79 commits

Author SHA1 Message Date
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
John Wiegley
1fd4387b67 Restored pricesdb command and --pricesdb-format option 2009-06-18 01:49:49 +01:00
John Wiegley
47d237e18b Restored --input-date-format option 2009-06-18 01:36:24 +01:00
John Wiegley
141e60c7a7 Added baseline test for --real 2009-06-18 01:26:08 +01:00
John Wiegley
95be19dd28 Added baseline test for --period 2009-06-18 01:24:05 +01:00
John Wiegley
15193ffb3b Added a baseline test for balance assignments 2009-06-13 17:44:12 +01:00
John Wiegley
9c5c1eb776 Renamed the fixated-prices test 2009-06-13 17:42:24 +01:00
John Wiegley
d2062bb54c Temporarily disable the opt-forecast-while test 2009-05-26 23:43:47 -05:00
John Wiegley
16c77af9c9 If 2+ child accounts are shown, show the parent
Also, also show a final balance if there are multiple accounts
displayed, even if that final balance is zero.
2009-03-15 21:31:06 -04:00
John Wiegley
d0963ece02 If a balance report is multi-lined, print a total 2009-03-15 04:14:03 -04:00
John Wiegley
77faaa926f Rewrote the balance report again, to fix --depth 2009-03-08 04:15:48 -04:00
John Wiegley
31d6430c78 Fixed another time-sensitive unit test 2009-03-02 21:38:13 -04:00
John Wiegley
1c7de0f9e4 Added "fixated commodity pricing"
If you put '=' before an annotated commodity's price, it will cause any
future market valuation of that commodity to use that price, and ignore
whatever changes may have happened since in the market price.  This can
be useful if you are tracking gas expenses based on a standard rate
which, although it changes over time, should not adjust the historical
valuation of how much the gas cost at the time it was purchased:

    2009/01/01 Payee
        Expenses:Gas                100 GAL {=$2}
        Liabilities:MasterCard        $-200
2009-03-02 16:39:26 -04:00
John Wiegley
a2ed6bc95d Patched some date-sensitive tests 2009-03-02 04:49:03 -04:00
John Wiegley
56693fab9b Separator in "balance" now part of format string 2009-02-27 16:23:36 -04:00
John Wiegley
f881bf1319 Fix to amount unreduction (aka, 120m -> 2h) 2009-02-27 15:23:38 -04:00
John Wiegley
316b854676 Fixed a buffer overrun 2009-02-27 01:46:16 -04:00
John Wiegley
20077db3c8 Fixed the pager test to be more portable 2009-02-24 21:43:04 -04:00
John Wiegley
f13709f71a Be smarter about printing uncommoditized amounts 2009-02-24 15:13:21 -04:00
John Wiegley
38dd1b8655 Fixed an issue involving costs and reduced values 2009-02-24 13:29:08 -04:00