John Wiegley
a64c249efb
Allow --period flag to specify a report range
2009-06-17 17:15:29 +01:00
John Wiegley
cb2e596725
The --revalued option now honors the -e terminus
2009-06-17 16:54:02 +01:00
John Wiegley
81db8a38fe
Fixed some compiler warnings in non-debug mode
2009-06-16 18:50:37 +01:00
John Wiegley
3a926da4cb
When --end is used, set a "terminus" date
...
This means that final balance valuations (with -V or -X) will be done in
terms of the date given to --end, rather than based on the current day.
Fixes 647D5DB9-DBBB-47C8-80CE-F3F70E3B0253
2009-06-16 18:49:27 +01:00
John Wiegley
94467e5b7f
Fixed a problem with accounts and trailing spaces
...
This issue is caused by having a single space at the end of a posting
that has neither an amount nor a note.
Fixes C523E23F-CFAC-4A53-B0C6-21226640E763
2009-06-16 17:05:28 +01:00
John Wiegley
298a4faef3
Move amount colorization deeper into the core
...
This is necessary in order to redden negative amounts correctly under
all circumstances, such as component amounts of a multi-commodity
balance.
Fixes 727B2DF8-A2A1-4716-9C15-547F20D5F933
2009-06-16 16:57:10 +01:00
John Wiegley
463f741ed2
Allow an amount to be zero, even if cost is non-zero
...
The only real change is that exchanges of zero-amount will not result in
any exchange at all, just the "motions".
Fixes 6DAB9FE3-1399-4727-9AB1-FE413FB85A03
2009-06-16 16:23:58 +01:00
John Wiegley
3c692a94d4
Fixed a problem in the 'entry' command
...
It was selecting virtual transactions during auto-posting lookup.
Fixes 793F6BF0-9CDE-4741-967A-2CEA697476B4
2009-06-16 16:22:17 +01:00
John Wiegley
ec9745161e
Corrected a minor typo
2009-06-16 15:49:31 +01:00
John Wiegley
49f5465adb
Temporarily stubbed out an inaccurate assert
2009-06-15 22:55:17 +01:00
John Wiegley
e97b59b006
Refinement to display of account balances
...
Fixes 5A03CFC3-1A76-4F93-A1FE-555F98438C5A
2009-06-15 17:52:52 +01:00
John Wiegley
092bda1435
Don't increase precision so much when dividing
...
Slow the increase in internal precision when dividing amounts.
Use "--debug amount.convert" if you wish to see this logic in action, if
a case where incorrect rounding is suspected comes up.
Fixes B68FFB0D-A9A0-479C-A6C0-68853F229333
2009-06-15 17:52:38 +01:00
John Wiegley
981dc41eb7
Allow integers to be multiplied with amounts
...
Fixes other part of 04C5E1CA-1B39-4214-81C7-FD5AA785308F
2009-06-15 17:52:20 +01:00
John Wiegley
d45b35798c
Ignore attempts to annotate the null commodity
...
Fixes 04C5E1CA-1B39-4214-81C7-FD5AA785308F
2009-06-15 17:51:45 +01:00
John Wiegley
0e64207757
If a posting comment is very short, let it hang
...
This applies when using the "print" report, or the "comment" variable.
2009-06-14 18:26:26 +01:00
John Wiegley
8747c724f1
Strip annotations before handling bal assignments
2009-06-13 18:04:29 +01:00
John Wiegley
c79fd9e72d
Added new debug option --options
...
This reports which options are in place before invoking a command, and
where exactly each option value came from.
2009-06-02 19:14:46 +01:00
John Wiegley
0e9f782a05
Added % suffix operator, as in "$1.00 * 10%"
2009-05-26 23:45:44 -05:00
Andrew Potter
684a9c6cbf
Fix pointer const-ness in parse_tags()
2009-05-26 22:47:07 -05:00
John Wiegley
025af3c189
Corrected a syntax error in a gettext usage
2009-03-24 17:35:31 -04:00
John Wiegley
0918f9d4f5
Don't instantiate duration_t using default ctor
2009-03-23 19:21:27 -04:00
John Wiegley
dda7c3a58a
Rewrote the date interval parser/stepper
...
The new implementation uses boost::gregorian::date_duration objects,
rather than manually stepping.
2009-03-23 01:22:26 -04:00
John Wiegley
f1523b5464
The new code is working now.
2009-03-16 03:44:27 -04:00
John Wiegley
f2c60057ef
Restored all the old code, though not tested yet
2009-03-16 00:09:39 -04:00
John Wiegley
585b3a246d
Added feature to "align" the interval's start date
2009-03-15 23:51:46 -04:00
John Wiegley
a05353e269
First iteration of the new date_interval_t rewrite
2009-03-15 22:39:44 -04:00
John Wiegley
1889d449b6
Added a missing * operation
2009-03-15 22:39:44 -04:00
John Wiegley
8beed3f8bd
Removed an unnecessary member variable
2009-03-15 22:39:44 -04:00
John Wiegley
0de43f483b
Started breaking up interval_t into range_t
2009-03-15 22:39:44 -04: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
97784f72a2
Moved a variable initialization
2009-03-11 19:08:52 -04:00
John Wiegley
110f0b8023
Enabled use of pre-compiled headers by default
2009-03-10 17:02:03 -04:00
John Wiegley
542e2950af
Normalized some #ifdef's to #if defined
2009-03-10 04:46:40 -04:00
John Wiegley
3b23823ea7
Disabled warning on not finding ledger/__init__.py
...
This warning is completely harmless, and was downgraded to a debug
message.
2009-03-09 22:08:24 -04:00
John Wiegley
e0473e207b
Rewrote acprep in Python and improved the build
2009-03-09 21:51:02 -04:00
John Wiegley
db70bb1d04
Added support for "today" as a time period
2009-03-08 04:20:33 -04:00
John Wiegley
77faaa926f
Rewrote the balance report again, to fix --depth
2009-03-08 04:15:48 -04:00
John Wiegley
c99ab20853
Fixed a few minor cases of uninitialized variables
2009-03-08 02:07:49 -04:00
John Wiegley
ec382f54b7
Fixed a reference to uninitialized memory
...
This was only found with _GLIBCXX_DEBUG=1 *and* coverage analysis
(-fprofile-arcs -ftest-coverage).
2009-03-07 15:04:32 -04:00
John Wiegley
f340d50362
Revised the ways statistics are computed
...
It is no longer done in calc_posts, but recursively on each account.
This allows value expressions to ask statistical questions, like
"earliest cleared posting?" (TBD) from any specific account, computed
lazily.
2009-03-06 04:07:25 -04:00
John Wiegley
2728e4d55e
Changed the way that account balances are computed
2009-03-06 00:27:29 -04:00
John Wiegley
dd23edd5ce
Implemented --unround using value expressions
2009-03-06 00:27:16 -04:00
John Wiegley
6ac79137f7
Don't compute running total for balance reports
2009-03-05 23:53:07 -04:00
John Wiegley
fb9af0f111
Removed the --totals option
2009-03-05 23:26:21 -04:00
John Wiegley
5167e6223b
Enriched the behavior of post_t::add_to_value
...
The new behavior will be used in future by some pending topic branches
I'm working on.
2009-03-05 23:02:50 -04:00
John Wiegley
a2c7312080
Renamed some flags and members in post_t
2009-03-05 22:39:32 -04:00
John Wiegley
d3c93b73cb
Added a value_t macro: VALUE_OR_VERO
2009-03-05 21:00:32 -04:00
John Wiegley
17cbb9d210
If Python is not in use, global includes session
2009-03-05 16:55:46 -04:00
John Wiegley
c11d325712
Reduced the #include dependency tree to a minimum
2009-03-04 23:53:43 -04:00