Commit graph

39 commits

Author SHA1 Message Date
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
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
ea27d1b45a Moved around and renamed a very large amount of code in order to rationalize
the way that value expressions extract information from journal objects.
2008-07-29 20:10:03 -04:00
John Wiegley
4bc29e1351 A great deal of reorganization to restore the old parsing code (since the
newer XML stuff was pulled).
2008-07-22 02:23:45 -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
5a93d4819e Reworked the way date/times are handled. 2008-04-13 02:41:32 -04:00
John Wiegley
e32d9e64a7 Added much better error location. 2008-04-13 02:41:29 -04:00
John Wiegley
d02f74efea *** empty log message *** 2008-04-13 02:41:29 -04:00
John Wiegley
96d6d62ad9 Began support for improved commodity handling. 2008-04-13 02:41:28 -04:00
John Wiegley
7901598f1d Checked in all major updates. 2008-04-13 02:41:27 -04:00
John Wiegley
f2a167e0ed *** empty log message *** 2008-04-13 02:41:26 -04:00
John Wiegley
4aea9709bb Made several changes to the parsing infrastructure to allow passing
the "config_t" object around.  This is needed for parsing option
settings in the initialization file.
2008-04-13 02:41:23 -04:00
John Wiegley
6cee916e04 Added in.clear() before resetting I/Os streams. Again, thanks to the
list.
2008-04-13 02:41:22 -04:00
John Wiegley
a8012940f4 Removed Python integration support. 2008-04-13 02:41:21 -04:00
John Wiegley
eb0525e315 See ChangeLog 2008-04-13 02:41:19 -04:00
John Wiegley
a53f44ecda Support has been added for clearing of individual transactions. Set
`ledger-clear-whole-entries' in Emacs to revert to the old behavior.
2008-04-13 02:41:19 -04:00
John Wiegley
f9cd17bd31 *** empty log message *** 2008-04-13 02:41:18 -04:00
John Wiegley
14b49db046 *** empty log message *** 2008-04-13 02:41:18 -04:00
John Wiegley
747332b085 *** empty log message *** 2008-04-13 02:41:17 -04:00
John Wiegley
95e282a4f7 *** empty log message *** 2008-04-13 02:41:17 -04:00
John Wiegley
fe825a9b78 (parse): Improvements to QIF parsing. 2008-04-13 02:41:17 -04:00
John Wiegley
609f6b195a (parse): Negate QIF amounts for which a category is specified, since
the category shows where the money went, not where it came from.
2008-04-13 02:41:13 -04:00
John Wiegley
afa807a678 (qif_parser_t::parse): Record the beginning and ending line/pos and
source index when reading QIF files.
2008-04-13 02:41:13 -04:00
John Wiegley
6ecec7eb1e (parse): Removed an unnecessary line of code. 2008-04-13 02:41:12 -04:00
John Wiegley
fdf73faff7 (parse): Accept CX as well as C*. Also, general improvements to Bank
type parser.
2008-04-13 02:41:11 -04:00
John Wiegley
65bfc5756c (qif_parser_t::parse): Propogate commodity flags when parsing amounts
from a QIF file.
2008-04-13 02:41:10 -04:00
John Wiegley
37ae9bf0c2 added missing headers 2008-04-13 02:40:57 -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
84259bde51 changed ledger.h to journal.h; moved adding of autoxact hook 2004-09-23 21:37:39 -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
John Wiegley
16841fbae3 added (disabled) code for Boost.Python 2004-08-27 23:38:39 -04:00
John Wiegley
6d5333b896 use value_t instead of balance_pair_t; gains for 10% binary, 2% textual 2004-08-21 23:18:45 -04:00
John Wiegley
000bfe1cec only compute the cost when it differs from the amount 2004-08-21 15:55:03 -04:00
John Wiegley
3934d558e1 quick fix 2004-08-19 22:17:05 -04:00
John Wiegley
a9b207205f several fixes 2004-08-19 22:03:23 -04:00
John Wiegley
9d4f839263 the QIF parser was too order dependent 2004-08-19 20:54:19 -04:00
John Wiegley
7e2af9b73d bug fix in QIF parsing 2004-08-19 18:16:22 -04:00
John Wiegley
aba3d3037a added support for parsing QIF files 2004-08-19 17:55:33 -04:00