John Wiegley
e3b40f5bb6
Fixed how subtotal date ranges are computed
2009-02-16 02:31:21 -04:00
John Wiegley
4dbd124e22
Revert "Propagate xact effective date in two places"
...
This reverts commit 17a0ab8407 .
2009-02-16 02:16:34 -04:00
John Wiegley
17a0ab8407
Propagate xact effective date in two places
2009-02-16 01:19:59 -04:00
John Wiegley
be208ef260
Report collapsed xacts using earliest date
2009-02-16 01:14:23 -04:00
John Wiegley
8c2a70e197
Made several of the filters more context aware
...
This resolves certain issues where value expressions were not being
looked up within their full context.
2009-02-15 23:00:16 -04:00
John Wiegley
bfa6a643a1
Improved handling of --empty option
...
For example, in period reports null transactions are only generated for
empty periods if --empty is used. Otherwise, the presence of such
transactions can get confusing.
2009-02-15 20:59:13 -04:00
John Wiegley
78e57ac4cf
item_predicate now operates on scope_t
...
This means item_predicate is no longer a template.
2009-02-15 20:56:48 -04:00
John Wiegley
e199e3863c
Fixed a call to value_t::cast to use in_place_cast
2009-02-15 19:44:45 -04:00
John Wiegley
a1e1133c80
Whitespace fixes
2009-02-15 19:43:46 -04:00
John Wiegley
03219d910f
Added xact_t::count member
...
This allows reports to access the "whicheth" index of the reported
transaction. It's used mainly by the --average report, which divides
the running total by this count to get the arithmetic mean.
2009-02-15 15:41:24 -04:00
John Wiegley
36b96c47ac
Have interval_xacts construct temps on a list
2009-02-14 23:38:14 -04:00
John Wiegley
50f434a5e3
Generate null transactions for empty periods
...
For example, if one uses -M to generate a monthly report for an entire
year, and there are no transaction in the month of February, ordinarily
Ledger would report nothing for that month, even if -E were used. Now
"null transactions" are generated for periods without any activity, in
order to make certain reports -- such as running monthly averages --
more accurate.
For example, instead of -MA being just a monthly running average of
months with activity, it is now a true average among all months during
the reported period.
2009-02-14 05:55:09 -04:00
John Wiegley
7fb55eedef
Re-enabled periodic reporting options (-M, etc)
2009-02-14 04:31:15 -04:00
John Wiegley
c8cd2c468e
Re-enabled some code, and removed a bunch of deadwood.
2009-02-12 03:30:41 -04:00
John Wiegley
6ca01af594
Fixed the use of --effective and --date-format (-y).
2009-02-09 17:27:54 -04:00
John Wiegley
37a1989ca0
Added a new --collapse-if-zero option.
2009-02-09 15:07:28 -04:00
John Wiegley
3f7104e9be
Removed the balance_pair_t type, since it's now an unneeded abstraction.
...
This type was a holdback from the days before the amount_expr was used
everywhere to determine a transaction's value.
2009-02-09 14:54:42 -04:00
John Wiegley
02110394b4
Use the report's amount_expr everywhere that computes an xact's amount.
2009-02-09 14:53:29 -04:00
John Wiegley
4d8fba5fad
Always calculate transaction totals based on the expression for the amount.
2009-02-09 01:33:45 -04:00
John Wiegley
391300aea2
Had to step back from a change that was breaking regular reports.
2009-02-09 00:57:56 -04:00
John Wiegley
0cb8049c41
Pass amount expression to calc_xacts, to be used for computing the total.
2009-02-08 23:57:30 -04:00
John Wiegley
02bd9d29cf
Improved an error message that was trying to show transaction context.
2009-02-08 20:05:56 -04:00
John Wiegley
1de748fc13
Removed an unnecessary boolean test.
2009-02-07 18:41:52 -04:00
John Wiegley
589eabd8e6
Threw away the "multiple parser" infrastructure.
2009-02-07 17:45:48 -04:00
John Wiegley
cdcd52dbaf
Removed the nearly unknown --descend and --descend-if options.
2009-02-06 23:36:32 -04:00
John Wiegley
04ac5ffcb4
Whitespace fix.
2009-02-04 20:45:43 -04:00
John Wiegley
2d941730b1
Largely removed all of Ledger's use of global variables, for the REPL's sake.
2009-02-04 19:55:27 -04:00
John Wiegley
24ef163ba5
Removed unneeded member variables.
2009-02-04 00:35:02 -04:00
John Wiegley
9540406af1
Simplified error context handling.
2009-02-02 00:24:26 -04:00
John Wiegley
e9ff5caa13
Rationals based math is now passing the unit tests.
2009-01-31 04:25:05 -04:00
John Wiegley
e0dd2cd0a4
Changed to using rational numbers instead of integer approximations.
...
As a result, dependency on the gdtoa was dropped, and dependency on mpfr was
added.
2009-01-30 19:30:16 -04:00
John Wiegley
05c77351e4
Stopped using the generic "unsigned int" in favor of more specific types.
2009-01-29 18:23:57 -04:00
John Wiegley
cbc41ca47a
Moved sha1 and gdtoa inclusions into system.hh.
2009-01-24 04:50:18 -04:00
John Wiegley
2858a9999a
Added missing zeroes in the sha1 to text generation.
2009-01-20 20:13:05 -04:00
John Wiegley
3682ea6f8c
Added support for "anonymizing" any report with --anon.
2009-01-20 20:05:41 -04:00
John Wiegley
887828a40c
Increased copyright range to include 2009.
2009-01-20 01:53:31 -04:00
John Wiegley
ad9a469a2a
Got changed_value_xacts working again.
2009-01-19 22:30:11 -04:00
John Wiegley
1edb531c05
Renamed XACT_BALANCE flag to XACT_MUST_BALANCE.
2008-09-19 08:08:28 -04:00
John Wiegley
fdc7a4e4c5
Factored common parts of entry_t and xact_t into new item_t
2008-09-19 08:06:20 -04:00
John Wiegley
50ee03e3f0
Fixed the way that nested caught exceptions are rethrown, and how value
...
expressions are displayed when errors are found in them.
2008-09-15 02:36:50 -04:00
John Wiegley
2bff7565c1
Changed interval_t::start to interval_t::set_start, to be more clear about how
...
it differs from interval_t::first.
2008-08-14 04:14:02 -04:00
John Wiegley
b134a98e1e
Enabled the --tail and --head options.
2008-08-13 02:58:49 -04:00
John Wiegley
7ffb6c472c
The balance report is working again.
2008-08-10 02:53:56 -04:00
John Wiegley
c9d575abce
Basic balance reports are working again!
2008-08-10 00:57:29 -04:00
John Wiegley
f6f4a46cf5
Moved around most of the files so that source code is in src/, documentation
...
is in doc/, etc.
2008-08-05 18:05:49 -04:00