Commit graph

929 commits

Author SHA1 Message Date
John Wiegley
a68bcfc92e Permit date_t to be constructed by a datetime_t. 2008-09-17 05:06:17 -04:00
John Wiegley
a00af44d1d Increased xml output version to 2.6. 2008-09-17 05:05:59 -04:00
John Wiegley
88c0b459b9 Removed "note" field in entry_t, since that feature is not appearing in 2.6.1. 2008-09-17 05:05:49 -04:00
John Wiegley
495b64f296 When automatically associating lot details with a commodity, use only the
price (based on the cost of the transactions), don't automatically use the
date and the entry code -- since most people aren't going to be that specific
at the time of sale, it's causes confusion in certain cases.

Fixes: E87DD3A5-B061-46A0-95E9-9844A6CB0443
2008-09-17 05:05:26 -04:00
John Wiegley
bd46f5af18 Marked TODO closed: Merge Levin's changes into v2.6.1b. 2008-08-26 10:12:08 -04:00
John Wiegley
00ca034e73 Merge branch git://github.com/levindu/ledger.git 'master' into v2.6.1b
Conflicts:
	Makefile.am
2008-08-26 10:10:16 -04:00
John Wiegley
910f165096 Added a note about needing to merge in levin's changes. 2008-08-26 00:14:51 -04:00
John Wiegley
08fc80937e Changed sorting order of task items. 2008-08-18 04:05:17 -04:00
John Wiegley
093db50269 Updated data/ submodule reference. 2008-08-18 03:58:05 -04:00
John Wiegley
3b093ef4a9 Updated TODO file to match what was in the Trac for 2.6.1. 2008-08-18 02:50:45 -04:00
John Wiegley
0a5279d57e Added a link to the 'data' submodule, for task attachments. 2008-08-17 20:53:39 -04:00
John Wiegley
4135911645 Make it so that the AUTHORS and COPYING files are no longer required. 2008-08-17 03:46:25 -04:00
John Wiegley
a6f72ff790 Added a TODO file, which contains all of the issues resolved, and needing to
be resolved, for v2.6.1b.
2008-08-16 23:32:52 -04:00
John Wiegley
bf6b4581e1 Added a header inclusion for <memory>. 2008-08-16 23:32:21 -04:00
John Wiegley
0005e2887d Revert "Added the concept of "balance setting transactions"."
This reverts commit c93175183e.

The feature needs more thought and is not ready for 2.6.1.
2008-08-09 07:17:59 -04:00
John Wiegley
0db8d69796 The Boost.Python module is building again. 2008-08-08 02:50:05 -04:00
John Wiegley
ec1518d538 Add the OFX include directory to acprep. 2008-08-08 02:49:48 -04:00
John Wiegley
6ca843dd6e Don't synchronize stdio with iostreams, since it's unnecessary. This can give
us a free speed bonus.
2008-08-08 02:49:36 -04:00
John Wiegley
ef0d32cd5d Several changes to Makefile.am for 'make dist' and 'make distcheck' to work. 2008-08-06 17:10:56 -04:00
Levin Du
37cf3c6f6e ledger.el: fix broken ledger reconcile 2008-07-31 16:08:16 +08:00
Levin Du
19fcf4c99d fix balance error if read from stdin
This is introduce by c93175183e
2008-07-31 14:13:09 +08:00
Levin Du
bffdc6431d fix beg_line bug 2008-07-29 17:37:35 +08:00
Levin Du
7dfa17b260 add --root option to python module build 2008-07-29 12:39:17 +08:00
John Wiegley
dede5e71bf Corrected a bad rounding bug that affecting very small commodity entries. 2008-07-28 02:04:29 -04:00
John Wiegley
c93175183e Added the concept of "balance setting transactions". 2008-07-27 18:37:55 -04:00
John Wiegley
e5a8bbf997 Another quick optimization that cuts down on memory allocation. 2008-07-26 23:55:17 -04:00
John Wiegley
9b7725ee18 Added a simple optimization to the way amount strings are parsed. 2008-07-26 23:55:06 -04:00
John Wiegley
7848dbd7f7 Increased binary cache file internal version number. 2008-07-26 23:54:35 -04:00
John Wiegley
0c070cde61 acprep: I don't keep ChangeLog files under version control anymore, but
automake requires it, so when preparing the sources for building the ChangeLog
is touch'd just as we were doing for AUTHORS and COPYING.
2008-07-23 15:54:44 -04:00
John Wiegley
b1370b654d More copyright date updates. 2008-07-21 06:29:40 -04:00
John Wiegley
0c800d968c A patch from Juergen Daubert, which fixes the output from --version. 2008-07-21 06:22:03 -04:00
John Wiegley
025c9acda9 When using the "entry" command with an unknown payee, get the draw account
correct if one is specified.  Fixes #203.
2008-07-20 20:31:53 -04:00
John Wiegley
00a47a38f6 Corrected the copyright date in ledger.el. 2008-07-20 20:31:20 -04:00
John Wiegley
8e49f5242f Erroneously compared a character position to NUL, rather than setting it. 2008-07-19 21:31:36 -04:00
John Wiegley
911b866230 When converting datetime_t to a long, I now need to directly access the 'when'
member, otherwise C++ chooses the bool conversion, which is always wrong.
2008-07-19 16:52:16 -04:00
John Wiegley
2aeee0bb64 Merged over changes from the newer ledger.el that was in my FTP directory.
C-c C-c will no longer destroy information if the amount is too close to the
account name.

C-c C-e will clear a whole entry; TAB and C-TAB now perform completion; the
reporting infrastructure has been improved (thanks to a contributor); and
other small improvements.
2008-07-18 02:28:43 -04:00
John Wiegley
899f79d032 Reconciling using ledger.el is now line-based, instead of character based, due
to problems with UTF-8 characters.
2008-07-17 23:42:19 -04:00
John Wiegley
0f7776f7af Updated the version number to 2.6.1. 2008-07-17 23:28:05 -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
3d1ab0e4e7 Changed the default value of ledger-binary-path to just "ledger", since
there's no need to require an absolute pathname.
2008-07-17 22:09:26 -04:00
John Wiegley
a7377e4581 The "entry" command now correctly allows for a "draw account". 2008-07-17 22:04:41 -04:00
John Wiegley
76b58dc413 Corrected a mis-type in the NEWS file. 2008-07-17 21:40:45 -04:00
John Wiegley
56cfd84576 Disabled an error check that has no real value in 2.6. 2008-07-17 21:37:19 -04:00
John Wiegley
b2258cedd1 slanack: The problem was that <split:quantity> received the `transaction
commodity' instead of the correct `account commodity'.  There should really be
a check if the account commodity has been defined.
2008-07-17 21:26:41 -04:00
John Wiegley
30fb235841 Added helper methods for comparing a balance to a balance_pair. 2008-07-17 21:22:24 -04:00
John Wiegley
6cb519231f If AMOUNT_PARSE_NO_MIGRATE is set, do not set a commodity's precision even if
this is the first time a commodity is being seen.  The reason is that it's
quite possible (especially in bug reports) for the cost of a priced
transaction to contain the first occurrence of a commodity.
2008-07-17 20:55:15 -04:00
John Wiegley
c673b96691 Round unbalanced remainders before reporting them, because that will make a
whole lot more sense to the user, rather than reporting the internal
precision.
2008-07-17 20:55:15 -04:00
John Wiegley
595452e332 Protect against a case where xact->entry may legitimately be NULL. 2008-07-17 20:55:15 -04:00
John Wiegley
5f472969cd Moved an auto_ptr up into main, since the memory it governs must still be
available to the exception handlers that come immediately after it.
2008-07-17 20:55:15 -04:00
John Wiegley
d0669f8402 Removed implicit conversions from ledger::date_t to std::time_t, since this
operator was never been chosen over operator bool (and hence, all times
appeared as either 0 or 1).
2008-07-17 20:55:11 -04:00