Martin Michlmayr
746ca1fe6d
Unify debugging categories
...
Debugging categories follow the filename, which in this case is singular
(rather than plural) "account" and "amount".
2014-07-01 14:14:23 -04:00
Alexis Hildebrandt
2b9208e850
Bump copyright information to 2014
2014-02-02 12:36:22 +01:00
Alexis Hildebrandt
30b6acb0b0
Apply --time-colon option only to time commodities
...
See #989
2013-09-07 09:38:13 +02:00
John Wiegley
db35e5c8fc
Resolve new compiler warnings from Clang
2013-05-19 02:14:27 -05:00
Johann Klähn
a875940a93
fix ledger xml output, remove ledger json command
...
As the format used by property trees to represent valid JSON
and that for valid XML is too different and given that there are
more requests for valid XML output I decided to pursue a quick fix
and remove the json command in favor of a working xml command.
See bug #782 , #909 , recent discussion on mailing list.
JSON support is postponed until I or someone else finds time to work on
this or the python bindings are more stable.
2013-03-08 22:56:01 +01:00
John Wiegley
0951bcebef
Bump copyright information to 2013
2013-02-18 06:51:21 -06:00
Craig Earls
0df1366168
Bug 634 Added roundto function, optimized floor and ceiling
...
Fixes Bug634 by adding roundto(amount, places).
2013-01-30 15:35:31 -07:00
John Wiegley
ec7402fff8
Merge pull request #107 from afh/pull/time_colon
...
Add --time-colon option
2013-01-29 09:34:08 -08:00
Johann Klähn
3ed53b7b3c
whitespace cleanup
2013-01-16 23:11:45 +01:00
Alexis Hildebrandt
36f87f49d8
Add --time-colon option
...
The --time-colon option will display the value for a seconds
based commodity as real hours and minutes.
For example 8100 seconds by default will be displayed as 2.25
whereas with the --time-colon option they will be displayed
as 2:15.
2012-11-10 12:02:00 +01:00
Craig Earls
b044a74bd3
Bug 634 and 488, Corrected behavior of floor, and added ceiling
...
This is only a partial fix for 634, since rounding is not fixed.
2012-10-25 22:28:26 -07:00
John Wiegley
2345f48094
Changed all ASSERTS_ON -> !NO_ASSERTS
2012-05-20 15:25:10 -05:00
John Wiegley
4681e58d7f
Converted the Ledger build system to use CMake
2012-05-20 04:48:05 -05:00
John Wiegley
a38ed141c1
Switched to Boost.PropertyTree for XML generation
2012-05-18 01:31:01 -06:00
John Wiegley
f4f3058b8c
Switch to using Boost.Format
2012-05-14 21:44:00 -06:00
John Wiegley
df1cbc33d1
Whitespace fix
2012-03-30 04:45:51 -05:00
John Wiegley
8e8c2904f5
Never price commodities using annotated commodities
2012-03-30 00:51:05 -05:00
John Wiegley
0f180b917a
Improved some error messages
2012-03-29 16:25:22 -05:00
John Wiegley
22505d9527
Always call TRACE_CTOR at the end of constructors
2012-03-20 02:10:40 -05:00
John Wiegley
363670d35b
Tighten up argument passing related to fn_market()
2012-03-11 03:55:25 -05:00
John Wiegley
080c1d9a2d
Added syntactic sugar for lot pricing: {{$500.00}}
2012-03-10 02:27:33 -06:00
John Wiegley
ca8f702a1b
Added amount_t::commodity_ptr()
2012-03-09 03:25:53 -06:00
John Wiegley
ec1f15a4b2
Made amount_t::price return an optional<amount_t>
2012-03-07 10:32:35 -06:00
John Wiegley
71d0033b6f
Corrected several compile and link problems
2012-03-06 23:04:27 -06:00
John Wiegley
02ffa7a515
Changed the category of a few DEBUG statements
2012-03-06 02:00:36 -06:00
John Wiegley
b6adc8f460
Use unique_ptr instead of std::auto_ptr
2012-03-05 17:46:42 -06:00
John Wiegley
8d6bf11334
All tests are working again but one
2012-03-05 05:03:52 -06:00
John Wiegley
e2afc783db
Increased file copyrights to 2012
2012-02-29 22:32:23 -06:00
John Wiegley
c3a9a7d2c5
Fixed many Clang type conversion warnings with static_cast
2012-02-17 15:17:52 -06:00
John Wiegley
f4e22cf7cb
Fixes for variable shadowing (5/28)
2012-02-17 15:06:02 -06:00
John Wiegley
24ae4bac7f
Fixes for variable shadowing (4/28)
2012-02-17 15:06:01 -06:00
John Wiegley
f9613fe1de
Fixes for variable shadowing (3/28)
2012-02-17 15:05:59 -06:00
John Wiegley
d493f79651
Use GMP_* macros instead of MPFR_*
2011-11-05 01:49:25 -05:00
John Wiegley
fc67484a21
amount_t::in_place_floor should round toward zero
2011-10-11 15:31:00 -05:00
John Wiegley
f0791bbd72
Cleanup whitespace
2011-08-18 14:48:38 -04:00
John Wiegley
add6f6ca2a
Removed unused variables
2011-08-18 14:46:36 -04:00
John Wiegley
2208ac1226
Fixes for compilation as C++0x code
2011-02-04 22:39:41 -05:00
John Wiegley
e162455ebb
Minor simplifications to valexpr parser
...
The most significant change is the way CONS sequences are parsed, and
that now instead of =/:=, the operators are ==/=.
2010-09-05 01:38:47 -04:00
John Wiegley
9ce498f890
Added debug print for commodity.prices.find
2010-06-20 17:10:50 -04:00
John Wiegley
627162acc0
Made amount_t::value a bit safer
2010-06-19 13:34:15 -04:00
John Wiegley
dea2aed0b5
Untabified all source files
2010-06-11 17:02:25 -04:00
John Wiegley
8637dd6ccf
New display flag AMOUNT_PRINT_ELIDE_COMMODITY_QUOTES
...
This is used by reports like register and balance so that separated
commodities without spaces in them needed be surrounded by quotes. It
will still occur in most other places.
Fixes #200 / F82CF11F-BFD9-4512-A562-202B04B68051
2010-06-09 06:45:07 -04:00
John Wiegley
be6cef93c4
A further simplification of -V and -X
...
With -X COMM, all values are computed in terms of COMM, regardless.
With -V, only secondary commodities will ever be computed, never
primaries. Further, if a secondary commodities has an associated price,
the valuation is done in terms of that price's commodity.
2010-06-07 09:49:17 -04:00
John Wiegley
c85cf0d810
Fixed the way prices and costs are print'd
2010-06-07 08:32:14 -04:00
John Wiegley
a4d4f99794
amount_t::print and value_t::print now use flags
2010-06-07 08:32:13 -04:00
John Wiegley
b848ace768
Allow opt -NDEBUG build to complete without warnings
2010-06-04 06:02:00 -04:00
John Wiegley
f76b271d24
Removed a redundant check
2010-06-03 23:18:18 -04:00
John Wiegley
e8bf3da053
Short-circuit annotated commodity valuation
2010-06-03 17:59:43 -04:00
John Wiegley
0f1afdb3a7
Minor optimization of amount_t::operator*
2010-06-03 05:47:12 -04:00
John Wiegley
3324e3472d
Removed some debug code
2010-06-03 00:54:10 -04:00