Commit graph

757 commits

Author SHA1 Message Date
John Wiegley
2d95c0e2a5 Added a global variable `entry_balance' which contains the balance of
the last attempted entry finalization.
2008-04-13 02:41:24 -04:00
John Wiegley
945d315eba (add_entry): Run `entry_finalize_hooks' before finalizing an entry.
This allows automated entries to add their transactions to the current
matching entry before that entry's balance is checked.
2008-04-13 02:41:24 -04:00
John Wiegley
3df316446e *** no comment *** 2008-04-13 02:41:24 -04:00
John Wiegley
0c035756e0 *** no comment *** 2008-04-13 02:41:24 -04:00
John Wiegley
8167141f05 (ledger-run-ledger): Report better error messages if
`ledger-binary-path' is set to an invalid value.
2008-04-13 02:41:24 -04:00
John Wiegley
b146067821 *** no comment *** 2008-04-13 02:41:24 -04:00
John Wiegley
c7bc309c8d (write_textual_journal): Corrected an error message. 2008-04-13 02:41:24 -04:00
John Wiegley
2a9c9dd09b (actual_date, effective_date): Changed an assert for non-NULL to a
mere check (it happens with the 'output' command).
2008-04-13 02:41:24 -04:00
John Wiegley
6e5bdb9b48 Added a check for null. 2008-04-13 02:41:24 -04:00
John Wiegley
f43370cae5 Transactions now track their beginning and ending position, as do
entries.  The new format strings %xB %xE %xb %xe can be used to
display those values relative to a transaction.  The Emacs module now
relies on this support to exactly determine where a transaction is,
rather than the Elisp logic it relied on previously.
2008-04-13 02:41:24 -04:00
John Wiegley
b041425846 *** no comment *** 2008-04-13 02:41:23 -04:00
John Wiegley
3dc36f24f1 (parse): The period phrase "every month" was not working (it required
you to say "every monthly").
2008-04-13 02:41:23 -04:00
John Wiegley
d9137e085b *** no comment *** 2008-04-13 02:41:23 -04:00
John Wiegley
fec8fbf6be (increment): When calculating time interval increments, set tm_isdst
to zero to avoid gaining or losing a day because of daylight savings
time.
2008-04-13 02:41:23 -04:00
John Wiegley
a787adb127 *** no comment *** 2008-04-13 02:41:23 -04:00
John Wiegley
0a8b36de3f 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
06b7e9d904 *** no comment *** 2008-04-13 02:41:23 -04:00
John Wiegley
a014347cf1 (Format strings): Removed the note saying that -P is an alternative to
--price-db.
2008-04-13 02:41:23 -04:00
John Wiegley
c3757cd560 *** no comment *** 2008-04-13 02:41:23 -04:00
John Wiegley
eb3211dd82 Relaxed parsing so that tabs are allowed in several places that
required spaces before.
2008-04-13 02:41:23 -04:00
John Wiegley
c483f1b5d7 *** no comment *** 2008-04-13 02:41:22 -04:00
John Wiegley
ad0865fc49 *** no comment *** 2008-04-13 02:41:22 -04:00
John Wiegley
973401b5dc Use libtoolize if glibtoolize can't be found. 2008-04-13 02:41:22 -04:00
John Wiegley
7a7abc9a81 *** no comment *** 2008-04-13 02:41:22 -04:00
John Wiegley
1898613d18 *** no comment *** 2008-04-13 02:41:22 -04:00
John Wiegley
b57c038dad (ofx_proc_transaction_cb): Applied patch for a bad reference to
entry->date.
2008-04-13 02:41:22 -04:00
John Wiegley
7716630a42 Added build logic for the Emacs file. 2008-04-13 02:41:22 -04:00
John Wiegley
ba3de24757 *** no comment *** 2008-04-13 02:41:22 -04:00
John Wiegley
110a23d2f0 Added in.clear() before resetting I/Os streams. Again, thanks to the
list.
2008-04-13 02:41:22 -04:00
John Wiegley
27273bb2f4 *** no comment *** 2008-04-13 02:41:22 -04:00
John Wiegley
7826104319 Added "=" to the character set used to scan for dates at the beginning
of lines, to accomodate virtual dates.  (This came from the mailing
list, thanks guys).
2008-04-13 02:41:22 -04:00
John Wiegley
d09da94a93 (derive_new_entry): Added an error check if only a payee is specified
for "entry" but the payee wasn't found.  (This came from the mailing
list, thanks guys).
2008-04-13 02:41:21 -04:00
John Wiegley
ce3491c99f Removed Python integration support. 2008-04-13 02:41:21 -04:00
John Wiegley
2eafddc91b *** no comment *** 2008-04-13 02:41:21 -04:00
John Wiegley
85b81a762b Added support for outputting to CSV format. 2008-04-13 02:41:21 -04:00
John Wiegley
fd8957368d changes 2008-04-13 02:41:21 -04:00
John Wiegley
3ba6e10852 (parse_and_report): Set ledger::terminus in main.cc, instead of
relying on static initialization of valexpr.cc.
2008-04-13 02:41:21 -04:00
John Wiegley
122af13d85 Added a safety check to see if moment is less than date. 2008-04-13 02:41:21 -04:00
John Wiegley
e984f50869 *** no comment *** 2008-04-13 02:41:21 -04:00
John Wiegley
5b06ef234e *** no comment *** 2008-04-13 02:41:21 -04:00
John Wiegley
e1d0dbf220 Restructed the code that it can build and be used as a shared library.
The command-line version is still statically bound in the build
process by default (for the sake of speed).
2008-04-13 02:41:21 -04:00
John Wiegley
6f4957c8c3 *** no comment *** 2008-04-13 02:41:20 -04:00
John Wiegley
3b88c287b0 Added support for a Y flag which matches against a transaction's
PENDING state (as opposed to X, which checks only CLEARED).  Now it
should be possible to query for all combinations of PENDING, CLEARED
or UNCLEARED.
2008-04-13 02:41:20 -04:00
John Wiegley
aadc36a65a *** no comment *** 2008-04-13 02:41:20 -04:00
John Wiegley
6421f57469 (parse_amount): Ignore inline math characters that are found quotes. 2008-04-13 02:41:20 -04:00
John Wiegley
7f0a1ac5a3 *** no comment *** 2008-04-13 02:41:20 -04:00
John Wiegley
4957bd4064 (class transaction_t): Initialize _date_eff to zero. 2008-04-13 02:41:20 -04:00
John Wiegley
4f1636dbb2 Added a `terminus' global, which if set marks the "current time" as
seen by the value expression logic.  This has the effect of changing
valexprs that test against the current time, such as for calculating
the market value of commodities.
2008-04-13 02:41:20 -04:00
John Wiegley
162313d60a *** no comment *** 2008-04-13 02:41:20 -04:00
John Wiegley
ef93067227 (class entry_base_t): Initialize the `journal' pointer to NULL on
object creation.
2008-04-13 02:41:20 -04:00