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
John Wiegley
a8182c32bd
Fixed the Boost facet-based time parsing code
2009-10-25 18:55:13 -04:00
John Wiegley
f25a32c92c
Whitespace and comment changes
2009-10-25 05:40:10 -04:00
John Wiegley
b061c8082f
Export times_initialize and times_shutdown to Python
2009-10-25 05:39:59 -04:00
John Wiegley
ca1560d53d
Fixed overflow bug introduced by the warning fixes
2009-10-25 05:39:47 -04:00
John Wiegley
2c8e7485a7
Fixed the memory tracing code (used by --verify)
2009-10-25 05:01:47 -04:00
John Wiegley
e2875f47ec
Added some extra storage checks to value_t
2009-10-25 05:01:47 -04:00
John Wiegley
26ae1fdfad
New valexpr functions: id, idstring, magnitude
...
id returns a unique SHA1 id of a transaction.
idstring is the string that the SHA1 is based on.
magnitude is the sum of the positive side of a transaction.
2009-10-25 05:01:47 -04:00
John Wiegley
5a970554b8
The UTF8 code is now unchecked if --verify is off
2009-10-25 05:01:47 -04:00
John Wiegley
9b13e77ff5
Improved debug output of "--debug expr.calc"
2009-10-25 05:01:47 -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
588f2ef2f5
Fixed many compiler warnings from g++ 4.4
2009-10-25 05:01:39 -04:00
John Wiegley
48d24e2a4c
Use boost::iostreams::file_descriptor_sink
...
This is instead of the custom fdstream.hpp file I was distributing.
2009-10-25 04:28:49 -04:00
John Wiegley
f161aea8ce
Removed reliance on strptime/strftime
...
The code now uses Boost's input and output facets for times and dates.
This ensures completely consistency regarding timezones and times, and
fixes the regression test that was broken while I was away coding in
London (where it was GMT-0 and I didn't notice the difference between
local and GMT).
2009-10-11 05:19:01 -04:00
John Wiegley
475014a14b
Added some missing casts, upgraded to Boost 1.40
2009-10-09 19:50:23 -04:00
John Wiegley
5ac73e1a1f
The print command now implies --actual
2009-06-28 17:37:16 +01:00
John Wiegley
2cec787182
Disable use of ~/.pricedb when --args-only is present
2009-06-28 16:11:45 +01:00
John Wiegley
0283f444c5
Date and time are optional for pricing directives
2009-06-28 16:06:27 +01:00
John Wiegley
bad1b13680
value_t::dump now faithfully represents strings
2009-06-28 16:00:29 +01:00
John Wiegley
b90ec25522
Reject downloaded quotes price in the wrong commodity
2009-06-28 15:57:49 +01:00
John Wiegley
e8f315f00d
Correctly align amounts formatted as "%12(amount)"
2009-06-28 15:53:46 +01:00
John Wiegley
d0c47b1bc2
Added debug code "option.names"
...
Use "--debug option.names" to see all accepted (internal) option names.
2009-06-27 01:48:41 +01:00
John Wiegley
7b05595699
Improved usefulness of the "print --anon" output
2009-06-27 01:45:31 +01:00
John Wiegley
bf30f989f6
Removed some dead code
2009-06-27 01:32:46 +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
4574c30fcf
The --download option is now fully restored
2009-06-26 16:52:41 +01:00
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