Commit graph

2280 commits

Author SHA1 Message Date
John Wiegley
65e8eca6cf The test harness needs to run without the pager 2009-10-28 02:30:51 -04:00
John Wiegley
773db54d21 Fixed a gcc warning 2009-10-28 02:30:17 -04:00
John Wiegley
0872f80d97 Make "less" the default pager, similar to Git 2009-10-28 02:29:22 -04:00
John Wiegley
16dbd019bc Colorization at the terminal now on by default 2009-10-28 02:13:54 -04:00
John Wiegley
a3a40994d2 Added some whitespace for clarity 2009-10-28 01:58:41 -04:00
John Wiegley
8b3a75fbbf The default ledger file is now ~/.ledger 2009-10-28 01:50:55 -04:00
John Wiegley
18a1c8a3fb No more trailing spaces in the print report 2009-10-28 01:43:04 -04:00
John Wiegley
a53874d56c Disabled a memory check when --verify is on
The check is not complete enough to be trustworthy.
2009-10-28 01:27:20 -04:00
John Wiegley
da0f3bf14a Revised the forecasting logic
There were cases involving sorting when the old logic could go on
forever.
2009-10-28 01:19:41 -04:00
John Wiegley
0a6f1a6328 -D now means --daily, not --deviation
Because --daily is more commonly desired, and fits the pattern of the
other periodic switches:

  -D  --daily
  -W  --weekly
  -M  --monthly
  -Y  --yearly

Only --quarterly doesn't have its own short option.
2009-10-28 01:19:16 -04:00
John Wiegley
aa45d2d38c Further improvements to handling temporaries 2009-10-28 01:18:27 -04:00
John Wiegley
cc532c31aa Added TRUE_CURRENT_TIME() macro
Because CURRENT_TIME() can now be a past date if --now is used.
2009-10-28 01:17:54 -04:00
John Wiegley
559566751d Sort by default unless --unsorted is selected 2009-10-28 01:17:10 -04:00
John Wiegley
b7233edd8a Added some additional assertion tests re: temps 2009-10-28 01:15:57 -04:00
John Wiegley
ade0a8b6f3 Added file relating to last doc update 2009-10-27 22:30:09 -04:00
John Wiegley
58fb654218 Merge branch 'next' 2009-10-27 22:26:13 -04:00
John Wiegley
6c9cf1237e Whitespace change 2009-10-27 22:25:19 -04:00
John Wiegley
432be9e989 Removed unnused parameter to value_t::print 2009-10-27 22:25:13 -04:00
John Wiegley
c4f4e6b5be Added note to doc file. 2009-10-27 22:24:51 -04:00
John Wiegley
828a1e8bf9 Added --actual-dates, for overriding --effective
This is so that if someone has --effective in their .ledgerrc, they can
force the use of actual dates.
2009-10-27 21:34:08 -04:00
John Wiegley
07cca71893 Renamed two methods, for consistency's sake 2009-10-27 21:33:33 -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
aae134f692 Fixed a display issue with the balance report 2009-10-27 19:01:55 -04:00
John Wiegley
cbf8f355d1 In budget report, color large percentages magenta 2009-10-27 17:30:53 -04:00
John Wiegley
12616dd030 Fixed an error with post-simplified math 2009-10-27 17:30:34 -04:00
John Wiegley
3c30f74931 Look for Boost in custom places for standard build 2009-10-27 08:39:05 -04:00
John Wiegley
027c255a4f Merge branch 'next' 2009-10-27 08:32:42 -04:00
John Wiegley
3ea7fbd5f6 If doing math between amount and balance, simplify 2009-10-27 08:30:59 -04:00
John Wiegley
63ae4531b8 Support balancing of postings with integer amounts 2009-10-27 08:30:59 -04:00
John Wiegley
1f379eff70 Fixed some debug code 2009-10-27 08:30:59 -04:00
John Wiegley
fd23b56a21 Added a new "cleared" report
This is a balance report with three columns:

  Current balance | Cleared balance | Last cleared date
2009-10-27 08:30:59 -04:00
John Wiegley
88460db2fb Added a new "budget" report
This is a balance report with four columns:

  Amount spent |  Budgeted Amount | Difference | Percentage
2009-10-27 08:30:59 -04:00
John Wiegley
a8768587c8 Allow any amount to be multipled by another
The result carries the commodity of the first amount, or the second if
the first had no commodity.
2009-10-27 08:30:59 -04:00
John Wiegley
4bdc0a663c Added debug code 2009-10-27 08:30:59 -04:00
John Wiegley
23a7c22c70 Use the WRITTEN date format for idstrings 2009-10-27 08:30:58 -04:00
John Wiegley
0fdb900c99 Redid the way temporaries are handled in filtering 2009-10-27 08:30:39 -04:00
John Wiegley
f20b6a3b9e Fixed a data lifetime bug
This was causing budget totals not to appear in balance reports.

Fixes 8254755E-7B61-47C8-B48E-A2A7FD79EB80
2009-10-27 05:23:24 -04:00
John Wiegley
6a2c6db071 When creating temp posts, add them to the account 2009-10-27 05:22:47 -04:00
John Wiegley
8b2bf571d8 Added a comment about a confusing bit of code 2009-10-27 05:22:12 -04:00
John Wiegley
20e6451ff1 Removed two invalid comments 2009-10-27 05:22:03 -04:00
John Wiegley
ddfd00afe1 Made the id function available in post contexts 2009-10-27 04:00:59 -04:00
John Wiegley
5ddb0e9bfb Output pointer values correctly for 64-bit systems 2009-10-27 04:00:35 -04:00
John Wiegley
7fae606d62 Merge branch 'next' 2009-10-26 19:09:24 -04:00
John Wiegley
3fdd75fb5b Balance assertions now really assert
There are two kinds of balance related options for a posting: a balance
assignment, where the amount of the posting is blank and so it fills it
in to make the assertion true; and plain assertions, where the amount is
not blank and an error is reported if the balance does not match the
given amount after the posting is taken into account.
2009-10-26 19:08:15 -04:00
John Wiegley
4f11ded5bc Added t and T as valexpr synonyms
t = display_amount, T = display_total
2009-10-26 18:52:43 -04:00
John Wiegley
151a8d87ee Fixed sorting in bal reports when --flat is used
Note that sorting on the "total" is not the same thing as sorting on the
"display_total" when multiple commodities are in use and the -X flag is
selected!  One should always sort on display_total, since that's the
value which is shown in the report.  'T' is a synonym for display_total.
2009-10-26 18:52:26 -04:00
John Wiegley
d85a415bc5 In the balance report, don't output any account twice 2009-10-26 17:23:46 -04:00
John Wiegley
1ed22646f1 Added an "echo" command, for REPL testing 2009-10-26 17:17:23 -04:00
John Wiegley
8999607408 If a pricing entry fails to parse, give an error 2009-10-26 17:17:12 -04:00
John Wiegley
feff681f44 Improved argument parsing logic used by the REPL
It now handles quoted strings, although it doesn't understand escape
sequences yet.
2009-10-26 17:17:01 -04:00