Commit graph

55 commits

Author SHA1 Message Date
John Wiegley
9c9a34388a First round of work to get the balance report working again. 2008-08-04 16:24:41 -04:00
John Wiegley
363fb6d558 Got date, payee and accounts back into the register report. 2008-08-03 00:22:55 -04:00
John Wiegley
858978de89 Journal data structures now use date_t instead of datetime_t.
This means transactions can only have day-level granularity -- which has
always been the case from an data file point of view.  The advantage to this
restriction is that reports will now be immune from daylight savings related
bugs, where a transaction falls to the wrong side of a --monthly report, for
example.
2008-08-01 17:37:22 -04:00
John Wiegley
e5048ec71b Change many uses of for+iterator to use Boost.Foreach. 2008-07-31 17:48:29 -04:00
John Wiegley
99313ebc6c Revised the way that exceptions are thrown around. Instead of context being a
complicated string of pointers, it's now just a global block of text that gets
appended to as the error is being thrown up, and can be displayed at the catch
point if desired.  There are almost no cases where a thrown exception will not
result in an error message being displayed to the user.
2008-07-31 06:24:45 -04:00
John Wiegley
8afd926a27 Cleaned up some method names and documentation relating to values. 2008-07-31 05:05:24 -04:00
John Wiegley
8276b51f56 A new binary_cache_t object has been creating to manage saving and restoring a
Ledger session from a cache file.  It doesn't work at all yet, though at least
the major structures are in place now.
2008-07-31 04:28:58 -04:00
John Wiegley
2aff35215f Enabled a huge number of warning flags for g++ in acprep, and fixed them all
except for several unused parameter warnings (because there is so much code
still #if 0'd out), and one implicit conversion from long long to long which
still has to be dealt with.
2008-07-30 05:12:46 -04:00
John Wiegley
1bb29cdbb7 The register report has begun printing real data, although not all the pieces
are in place yet and the formatting is still off.
2008-07-29 21:44:21 -04:00
John Wiegley
42e1d725aa The next value expression scheme is working, but the individual accessor
functions for each of the journal objects has yet to be ported.
2008-07-29 21:05:08 -04:00
John Wiegley
e14d7b6e54 Cleaned up the value expression code a bit before undertaking the real work of
getting everything back up to what it was (plus the new code written for 3.0).
2008-07-27 20:37:21 -04:00
John Wiegley
ebfe2d1011 Updated all copyright messages to 2003-2008. 2008-07-27 02:26:35 -04:00
John Wiegley
ee39695722 Parsing now works again. And there was much rejoicing. 2008-07-24 11:36:40 -04:00
John Wiegley
171f79dda2 There are no more asserts or exceptions while parsing, but still there are
many balancing errors.
2008-07-24 09:13:03 -04:00
John Wiegley
643f2d33cf More work toward getting the textual parser working again. Since this means
that value expressions must work, there are a lot of details involved.
2008-07-24 09:02:47 -04:00
John Wiegley
14de0694a9 Fixed a memory bug due to a shallow copy in value_t::storage_t. 2008-07-22 21:58:00 -04:00
John Wiegley
aa4f0d4364 Added the var_t helper class, which can be seen in the beginning
implementation of register_command in main.cc.
2008-07-21 20:41:42 -04:00
John Wiegley
d568319495 Merged in bug fixes from master (done for 2.6.1b) 2008-07-19 21:36:34 -04:00
John Wiegley
41e8d1871e Changes to allow DATETIME values to be negated, for the purposes of reverse
sorting.
2008-07-17 22:23:14 -04:00
John Wiegley
d159501993 The code is compiling again, but it's far from being able to run yet. 2008-05-08 02:50:19 -04:00
John Wiegley
b45037e334 Migrated over both code and build environment from was-v3.0 branch. 2008-05-08 02:50:19 -04:00
John Wiegley
8c16231938 Added missing casts to amount_t. 2008-04-13 05:09:13 -04:00
John Wiegley
f261d82df5 *** empty log message *** 2008-04-13 02:41:33 -04:00
John Wiegley
5a93d4819e Reworked the way date/times are handled. 2008-04-13 02:41:32 -04:00
John Wiegley
a5aff9eee9 Several fixes to lot price handling. 2008-04-13 02:41:31 -04:00
John Wiegley
b1a04923fe *** empty log message *** 2008-04-13 02:41:30 -04:00
John Wiegley
4a96c8d7d8 *** empty log message *** 2008-04-13 02:41:30 -04:00
John Wiegley
47e2a34176 *** empty log message *** 2008-04-13 02:41:29 -04:00
John Wiegley
e32d9e64a7 Added much better error location. 2008-04-13 02:41:29 -04:00
John Wiegley
b737cd8e6d Added a DATETIME value type. 2008-04-13 02:41:29 -04:00
John Wiegley
7acc1306d9 *** empty log message *** 2008-04-13 02:41:29 -04:00
John Wiegley
2ebfddf401 Began support for improved commodity handling. 2008-04-13 02:41:28 -04:00
John Wiegley
0c55a5ee1b (read_binary_journal): Fixed a tiny memory leak when reading from a
binary cache.
2008-04-13 02:41:28 -04:00
John Wiegley
a2423f99db *** empty log message *** 2008-04-13 02:41:27 -04:00
John Wiegley
a597b0fb5e Further improvements to lot pricing. 2008-04-13 02:41:27 -04:00
John Wiegley
7901598f1d Checked in all major updates. 2008-04-13 02:41:27 -04:00
John Wiegley
a8012940f4 Removed Python integration support. 2008-04-13 02:41:21 -04:00
John Wiegley
c9fb11bd60 updated to version 2.0 2008-04-13 02:40:47 -04:00
John Wiegley
a32173ace6 changes 2008-04-13 02:40:47 -04:00
John Wiegley
2eb2b1428b fixed another value_t comparison issue 2004-09-25 06:02:31 -04:00
John Wiegley
66bc51db6d added pysample.dat, which provides a more realistic example of using Python 2004-09-25 03:30:23 -04:00
John Wiegley
528019ce25 added support for "equity" in main.py 2004-09-24 07:00:52 -04:00
John Wiegley
9f8a32ab48 fixed several issues in value_t's core 2004-09-21 03:41:40 -04:00
John Wiegley
bd72c0cf90 added more math operators for value_t types 2004-09-14 05:05:56 -04:00
John Wiegley
a013b520ba python integrated both ways (see sample.dat), and initialized on-demand 2004-09-14 04:47:41 -04:00
John Wiegley
3d4259e6d0 balances and values can now be iterated, to get at the component amounts 2004-09-08 04:13:02 -04:00
John Wiegley
6cfdd704a9 made value_t into a more complete type. amounts.py now works. 2004-09-08 01:54:28 -04:00
John Wiegley
a4c5380a7f some fixes to value_t in python; still more work to go 2004-09-07 20:03:01 -04:00
John Wiegley
63367e3aac the amount/balance/value logic is now a library, completely separate from ledger 2004-08-29 23:32:29 -04:00
John Wiegley
2d62f7b633 redid the way amount_t::commodity is handled; no more direct access 2004-08-29 04:31:59 -04:00