Commit graph

451 commits

Author SHA1 Message Date
John Wiegley
46302362dd (related_transactions::flush): Handle the case where an auto_entry or
period_entry passes through the related_transactions handler.
2008-04-13 02:40:54 -04:00
John Wiegley
3b112af362 Added new "output" command. Likely not to be documented, as these are
intended primarily for future GUI development.
2008-04-13 02:40:54 -04:00
John Wiegley
ed000a6967 Added support for each entry to remember: the file it came from, and
the beginning and ending character positions of that entry within the
file.  This makes it possible to reproduce the input exactly, with
only the changed entries updated.
2008-04-13 02:40:54 -04:00
John Wiegley
d8f35f3152 (parse_and_report): Added new "reconcile" and "output" commands.
Likely not to be documented, as these are intended primarily for
future GUI development.
2008-04-13 02:40:54 -04:00
John Wiegley
9c60361e17 #include'd reconcile.h. 2008-04-13 02:40:54 -04:00
John Wiegley
4fda551752 (parse_elements): Added %S, %B and %E elements, for printing the
source path, beginning and ending positions of an entry.
2008-04-13 02:40:54 -04:00
John Wiegley
64461f0d95 Added write_hdr_format and write_xact_format, which are used by the
"output" command.
2008-04-13 02:40:54 -04:00
John Wiegley
9361c7c2e4 Added support for each entry to remember: the file it came from, and
the beginning and ending character positions of that entry within the
file.  This makes it possible to reproduce the input exactly, with
only the changed entries updated.

(read_binary_journal, write_binary_journal): All accounts and entries
now know which journal they are a member of, and have a `journal'
member pointing to it.
2008-04-13 02:40:54 -04:00
John Wiegley
dc80c23809 *** empty log message *** 2008-04-13 02:40:54 -04:00
John Wiegley
b5a6384d8d Check for `realpath' function, used by the new "output" command. If
it's not available, filename matching must be exact.
2008-04-13 02:40:54 -04:00
John Wiegley
23f8faad13 Added framework for an auto-reconcile command. Useful primarily for
GUI developers.
2008-04-13 02:40:54 -04:00
John Wiegley
37a67d89b0 (parse_ledger_data): Don't auto-create equivalencies for bytes,
kilobytes, etc., since people may want to use "b" for something else.
2008-04-13 02:40:53 -04:00
John Wiegley
3ea12c622d *** empty log message *** 2008-04-13 02:40:53 -04:00
John Wiegley
38653c0166 (endElement): Handle the <tr:virtual> and <tr:generated> tags, which
were being ignored.  (parse): Corrected error reporting when it is a
Ledger error.
2008-04-13 02:40:53 -04:00
John Wiegley
911c178394 (parse): Corrected error reporting lines when it is a Ledger error. 2008-04-13 02:40:53 -04:00
John Wiegley
8f63d2d172 (format_last_entry): Output tr:cost as an amount, not as an amount
string.
2008-04-13 02:40:53 -04:00
John Wiegley
93d8d2c811 *** empty log message *** 2008-04-13 02:40:53 -04:00
John Wiegley
ea36f88f95 Fixed check for libxmlparse. 2008-04-13 02:40:53 -04:00
John Wiegley
e2e808032c *** empty log message *** 2008-04-13 02:40:53 -04:00
John Wiegley
2cc62a4f76 (parse_and_report): Removed "files" argument. 2008-04-13 02:40:53 -04:00
John Wiegley
a151daddc3 (class journal_t): Added `price_db' member, which is the price
database used to read in historical prices for a given journal.
2008-04-13 02:40:53 -04:00
John Wiegley
00d0a58162 (export_journal): Added `price_db' property to ledger.Journal type. 2008-04-13 02:40:53 -04:00
John Wiegley
8ca6c6b827 (convert_number): If the denominator is zero, report an error instead
of crashing.
2008-04-13 02:40:52 -04:00
John Wiegley
d6475fc4a2 (parse_ledger_data): Set journal->price_db if a price database is
successfully read in.
2008-04-13 02:40:52 -04:00
John Wiegley
d62f9bb9bf (write_binary_journal): Removed unused "files" parameter. 2008-04-13 02:40:52 -04:00
John Wiegley
d1d63be306 Updated binary cache version, for good measure.
(read_binary_journal): Read in the price_db, in order to throw away
the cache if it has changed.  (write_binary_journal): Removed unused
"files" parameter.  Changed logic for writing out files list.  Also,
write out the prices database that was used.
(py_write_binary_journal): Removed "files" argument.
2008-04-13 02:40:52 -04:00
John Wiegley
df44635260 *** empty log message *** 2008-04-13 02:40:52 -04:00
John Wiegley
ee55dad882 *** empty log message *** 2008-04-13 02:40:52 -04:00
John Wiegley
e83b8a0471 Updated binary cache version, for good measure. 2008-04-13 02:40:52 -04:00
John Wiegley
482331d425 *** empty log message *** 2008-04-13 02:40:52 -04:00
John Wiegley
08e81c1858 (operator/): Added a more complete divide-by-zero check. 2008-04-13 02:40:52 -04:00
John Wiegley
2474f28c0a *** empty log message *** 2008-04-13 02:40:52 -04:00
John Wiegley
06b6e9bf0a Added #include <alogrithm> 2008-04-13 02:40:52 -04:00
John Wiegley
5ac1f9716f Changed all of the library tests into actual compile/link tests, to
ensure that the compilation environment is what it needs to be.  Also,
added a test to make sure the C++ compiler has some basic features,
since gcc2.95 will not work.
2008-04-13 02:40:51 -04:00
John Wiegley
45091a4918 *** empty log message *** 2008-04-13 02:40:51 -04:00
John Wiegley
44eff1c099 *** empty log message *** 2008-04-13 02:40:51 -04:00
John Wiegley
7054632aba doc updates 2008-04-13 02:40:51 -04:00
John Wiegley
e34151a776 *** empty log message *** 2008-04-13 02:40:51 -04:00
John Wiegley
e4b5af061e Changed the reconciling feature so that it doesn't need to ask for the
"number of days".
2008-04-13 02:40:51 -04:00
John Wiegley
76968b844c *** empty log message *** 2008-04-13 02:40:51 -04:00
John Wiegley
f2fc4b3a3c doc fix 2008-04-13 02:40:50 -04:00
John Wiegley
9cd4cf6df8 (format): Pay attention to the max_width setting for each formatting
element.  This means that "%.20N" can no longer exceed 20 characters
of width.
2008-04-13 02:40:50 -04:00
John Wiegley
632c54788c Updated to python2.4 2008-04-13 02:40:50 -04:00
John Wiegley
9a99b755cb *** empty log message *** 2008-04-13 02:40:50 -04:00
John Wiegley
1029560a6e *** empty log message *** 2008-04-13 02:40:50 -04:00
John Wiegley
e6c4532c56 (parse_and_report): If cache_file is "<none>", blank it out. This
steps around the logic that sets the default name.
2008-04-13 02:40:50 -04:00
John Wiegley
79f9a1efb5 Set cache_file to "<none>" if --no-cache is used. 2008-04-13 02:40:50 -04:00
John Wiegley
3a8729420e *** empty log message *** 2008-04-13 02:40:50 -04:00
John Wiegley
35d7cbb7a0 Check for libxmlparse.a using a compile test instead of a link test.
This is much less ambiguous.
2008-04-13 02:40:50 -04:00
John Wiegley
ea283a27ce (option_full_help): Added docs for --no-cache. (option_help): Added
docs for --no-cache.  Added --no-cache option.
2008-04-13 02:40:50 -04:00