Commit graph

679 commits

Author SHA1 Message Date
John Wiegley
e2dab6eac9 Changed manual to note that --end is now inclusive. 2008-04-13 02:41:17 -04:00
John Wiegley
b40006f450 Changed the --begin and --end switches to rely on interval parsing to
determine the beginning and ending of their range.  Also, the ending
is now inclusive.
2008-04-13 02:41:17 -04:00
John Wiegley
ed63481f3b *** empty log message *** 2008-04-13 02:41:17 -04:00
John Wiegley
d65a758c84 Moved the setting of time quantities to the commodity initialization
section.
2008-04-13 02:41:16 -04:00
John Wiegley
312f0c27e3 (operator): Rearranged some code and added an assert. 2008-04-13 02:41:16 -04:00
John Wiegley
b1b79de6d4 *** empty log message *** 2008-04-13 02:41:16 -04:00
John Wiegley
b98901664c (read_binary_journal, write_binary_journal): The "basket" account
pointer was being incorrectly restored from the cache.
2008-04-13 02:41:16 -04:00
John Wiegley
5fb495858b (operator): Rearranged some code and added an assert. 2008-04-13 02:41:16 -04:00
John Wiegley
cf83c024d9 *** empty log message *** 2008-04-13 02:41:16 -04:00
John Wiegley
6777a8519a (derive_new_entry): Backed out a change which caused the "from"
account to be incorrectly determined.
2008-04-13 02:41:16 -04:00
John Wiegley
059843b1cf *** empty log message *** 2008-04-13 02:41:16 -04:00
John Wiegley
c29eed174d (process_options): Test the "i" and "arg" variables thoroughly before
making use of either one of them.
2008-04-13 02:41:16 -04:00
John Wiegley
f8610dbfd7 *** empty log message *** 2008-04-13 02:41:15 -04:00
John Wiegley
46978b2d5d (regexps_to_predicate): Don't modify the display predicate for balance
commands if a payee regexp is being processed.
2008-04-13 02:41:15 -04:00
John Wiegley
557e103b2e *** empty log message *** 2008-04-13 02:41:15 -04:00
John Wiegley
ed8a236fe6 (subtotal_transactions::operator()): Changed the usage of the
temporary `values' map so that account names are always properly
sorted in the subtotaled output view.  As it was, they were being
reported in account creation order.
2008-04-13 02:41:15 -04:00
John Wiegley
d83aa2f732 *** empty log message *** 2008-04-13 02:41:15 -04:00
John Wiegley
1f433a129f (derive_new_entry): If the "entry" command can't figure out which
account to draw from, and if there is a "basket account" (defined with
"A" in a textual ledger), use that.
2008-04-13 02:41:15 -04:00
John Wiegley
dab2bfabc8 *** empty log message *** 2008-04-13 02:41:15 -04:00
John Wiegley
b79b3cf54b (report_budget_items): Removed an unused local variable. 2008-04-13 02:41:15 -04:00
John Wiegley
f9c2ddfd96 *** empty log message *** 2008-04-13 02:41:15 -04:00
John Wiegley
b22b655c34 (parse): Removed some unnecessary code which was actually causing
price histories to be parsed wrong when compiler optimizations were
used (at least on my machine).
2008-04-13 02:41:15 -04:00
John Wiegley
d4bdaa2d2b *** empty log message *** 2008-04-13 02:41:15 -04:00
John Wiegley
e00c568add When --input-date-format is seen, don't wipe out the rest of the date
formats, simply replace the first one.  Then, when --period is seen,
use the first date format as the template for what to pass to the
begin/end options.
2008-04-13 02:41:14 -04:00
John Wiegley
4e822d213f (derive_new_entry): If no argument were given but the payee, assume
the user wants to see the same transaction as last time.
2008-04-13 02:41:14 -04:00
John Wiegley
1e6bfc7796 (amount_t::value): Corrected a problem with commodity rounding after
market values are determined (was using the wrong commodity's
precision value).
(commodity_t::value): Fixed the market value calculation algorithm,
which was very broken (but only seemed to show up if the price history
was very small).
2008-04-13 02:41:14 -04:00
John Wiegley
6a98fa726a *** empty log message *** 2008-04-13 02:41:14 -04:00
John Wiegley
39a7aed8b1 Increased binary version number. 2008-04-13 02:41:14 -04:00
John Wiegley
e8df173270 (find_commodity): Don't copy over the NOMARKET flag from the default
commodity.
2008-04-13 02:41:14 -04:00
John Wiegley
cc2148a60d *** empty log message *** 2008-04-13 02:41:14 -04:00
John Wiegley
29eeae9b1c (process_options): Corrected a long-standing error with using "--" to
separate payee regexps from account regexps.
2008-04-13 02:41:14 -04:00
John Wiegley
66b4147958 (class format_account): Fixed initialization order 2008-04-13 02:41:14 -04:00
John Wiegley
8ed3aaacb7 *** empty log message *** 2008-04-13 02:41:13 -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
6de82df3ae *** empty log message *** 2008-04-13 02:41:13 -04:00
John Wiegley
92e591c237 (parse): Set the beginning and ending line number for each entry as it
is parsed.
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
2a690c7c47 Removed unused code. 2008-04-13 02:41:13 -04:00
John Wiegley
ec329bfaae (Format strings): Added documentation about using %b and %e format
elements.
2008-04-13 02:41:13 -04:00
John Wiegley
ecdc02c5d3 (class entry_base_t): Added beg_line' and end_line' members. 2008-04-13 02:41:13 -04:00
John Wiegley
368549f76d (export_journal): Added basket' member for journals, and beg_line'
and `end_line' for entries (for Python).
2008-04-13 02:41:13 -04:00
John Wiegley
13524610c9 Record the beginning/ending line and position of entries parsed within
Gnucash files.
2008-04-13 02:41:13 -04:00
John Wiegley
b5726ac831 (struct element_t): Added BEG_LINE and END_LINE. 2008-04-13 02:41:12 -04:00
John Wiegley
f851642347 (parse_elements): The format codes %b and %e can be used to display
the beginning and ending line numbers of an entry.  (format): Output
beginning and ending line for BEG_LINE and END_LINE types.
2008-04-13 02:41:12 -04:00
John Wiegley
529604b204 Updated binary version number. (read_binary_entry_base): Read in
beginning and ending line information for each entry.
(write_binary_entry_base): Write out beginning and ending line
information for each entry.
2008-04-13 02:41:12 -04:00
John Wiegley
a10f3f02e7 (parse): Allow "-$100.00" as the equivalent of "$-100.00". 2008-04-13 02:41:12 -04:00
John Wiegley
a2015ee510 *** empty log message *** 2008-04-13 02:41:12 -04:00
John Wiegley
155685657f *** empty log message *** 2008-04-13 02:41:12 -04:00
John Wiegley
f05ef1085a (parse_inline_math): Parse amounts that use any
of ()/*+- as "inline math".  This causes "$100.00 * 20" to be
turned into the equivalent value expression "({$100.00} * {20})".
It is a shorthand, at the expense of a little textual parsing
speed.
(parse_amount): Call `parse_inline_math' if appropriate.
(parse_entry): Support transactions that follow immediately after
the payee name, separated by two or more spaces.  This makes it
possible -- when a basket account is being used -- to list off
entry transactions one per line.
(parse): Allow a basket account to be specified using the syntax
"A ACCOUNT".  From that point on in the file, any single
transactions entries will be balanced against that account.
2008-04-13 02:41:12 -04:00
John Wiegley
6ecec7eb1e (parse): Removed an unnecessary line of code. 2008-04-13 02:41:12 -04:00