John Wiegley
1fad2ec7c1
More refactoring for --download
2009-06-24 18:08:56 +01:00
John Wiegley
0663ac0a2a
Moved commodity_quote_from_script to quotes.cc
2009-06-24 16:53:50 +01:00
John Wiegley
ba6254fd45
Moved a function
2009-06-24 16:50:12 +01:00
John Wiegley
991e3a3eaf
Split commodity.h/cc into three files
...
commodity.h - code for commodity_t
annotate.h - commodity annotations
pool.h - commodity pool management
2009-06-24 16:43:46 +01:00
John Wiegley
77d69d0e24
Removed unneeded header files: ledger.h, pyledger.h
2009-06-24 16:33:45 +01:00
John Wiegley
440124eacc
Restored --download, although not done yet
...
The problem at this point is that it's recording prices in the price
database multiple times; it should only need to download a price for
each commodity once per day.
2009-06-24 02:44:07 +01:00
John Wiegley
f8c3b4cad8
Fixed the --args-only option (sequence problem)
2009-06-22 00:29:14 +01:00
John Wiegley
407d057f4d
Added a --no-color option, to disable --color
2009-06-22 00:27:00 +01:00
John Wiegley
7d5f02f5cc
Restored option --period-sort
...
This option is just an alias for --sort-xacts.
2009-06-21 20:48:27 +01:00
John Wiegley
8cb80185d5
Restored the --truncate option, added baseline test
2009-06-21 19:06:07 +01:00
John Wiegley
f83a1c8873
Restored --unround, added baseline test
2009-06-21 18:37:39 +01:00
John Wiegley
fe6055bf16
value_t::in_place_unround wasn't doing it in-place
2009-06-21 18:35:48 +01:00
John Wiegley
ec62e70997
Whitespace reformatting
2009-06-21 18:34:23 +01:00
John Wiegley
521b935aa8
Restored --percent option, added baseline test
2009-06-21 18:07:27 +01:00
John Wiegley
7287aad336
Revert "Added % suffix operator, as in "$1.00 * 10%""
...
This reverts commit 0e9f782a05 .
2009-06-21 17:49:38 +01:00
John Wiegley
dabbd2c974
Fixes to the 'xact' command (used to be 'entry')
2009-06-19 00:00:57 +01:00
John Wiegley
83c93fdb73
Commented out an internal-only option
2009-06-18 18:58:37 +01:00
John Wiegley
269c0ccb7c
Added a code comment
2009-06-18 18:55:42 +01:00
John Wiegley
86dfc1e0be
The -X option now accepts price settings
...
For example, if you had 100 AU (onces of gold) and wanted to report it
in dollars, but at a price of $997 per ounce, you could now easily say:
ledger bal -X '$,AU=$997'
2009-06-18 18:50:49 +01:00
John Wiegley
56555f3870
Added baseline tests for --related, --related-all
2009-06-18 16:20:22 +01:00
John Wiegley
4253c2a35d
Allow uncommoditized amounts to be used as costs
2009-06-18 16:10:08 +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
ed9735f66d
Correctly parse the range of period "june 2008"
2009-06-18 00:50:27 +01:00
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