Commit graph

804 commits

Author SHA1 Message Date
John Wiegley
3030e604f4 Don't cleanup commodities if Ledger was built in release mode. 2008-04-13 05:48:44 -04:00
John Wiegley
e13d017255 (DEF_VALUE_CMP_OP): Convert amounts to balance and balance_pair when
comparing with those types.
2008-04-13 05:48:44 -04:00
John Wiegley
d0158a80ea *** no comment *** 2008-04-13 05:48:44 -04:00
John Wiegley
292460eabb *** no comment *** 2008-04-13 05:48:44 -04:00
John Wiegley
6ac8f7b603 *** no comment *** 2008-04-13 05:48:44 -04:00
John Wiegley
7b591dd27a *** no comment *** 2008-04-13 05:48:44 -04:00
John Wiegley
5766befbb7 *** no comment *** 2008-04-13 05:48:44 -04:00
John Wiegley
687eaefc37 *** no comment *** 2008-04-13 05:48:44 -04:00
John Wiegley
65682175e1 *** no comment *** 2008-04-13 05:48:44 -04:00
John Wiegley
1d9ed97c24 *** no comment *** 2008-04-13 05:48:44 -04:00
John Wiegley
581b3d5b9a *** no comment *** 2008-04-13 05:48:44 -04:00
John Wiegley
6375730fc9 *** no comment *** 2008-04-13 05:48:44 -04:00
John Wiegley
2034d6640c *** no comment *** 2008-04-13 05:48:44 -04:00
John Wiegley
9ac0a00fd4 *** no comment *** 2008-04-13 05:48:44 -04:00
John Wiegley
770ef0e183 *** no comment *** 2008-04-13 05:48:44 -04:00
John Wiegley
7a965565cf *** no comment *** 2008-04-13 05:48:44 -04:00
John Wiegley
c17c5dbcaf *** no comment *** 2008-04-13 05:48:43 -04:00
John Wiegley
2c4d724bd8 (textual_t::parse): Don't manipulate istream_pos_type objects on the
stack, this seems to blow things up on at least one OpenBSD system.
2008-04-13 05:48:43 -04:00
John Wiegley
d1bfacda38 Stopped writing out certain ident numbers which were not being used. 2008-04-13 05:48:43 -04:00
John Wiegley
e6efa8421f Removed --disable-emacs. 2008-04-13 05:48:43 -04:00
John Wiegley
f781dd5668 *** no comment *** 2008-04-13 05:48:43 -04:00
John Wiegley
d754367bfc *** no comment *** 2008-04-13 05:48:43 -04:00
John Wiegley
b30b4527df (read_binary_journal): Fixed a tiny memory leak when reading from a
binary cache.
2008-04-13 05:48:43 -04:00
John Wiegley
6d529efa63 *** no comment *** 2008-04-13 05:48:43 -04:00
John Wiegley
72e8a366a4 *** no comment *** 2008-04-13 05:48:43 -04:00
John Wiegley
bb9cfdd04c (derive_new_entry): Changed behavior of the "entry" command when a
matching entry or acount cannot be found.  Now it generates a close
approximation in all cases, and never an error message unless
something unresolvable has happened.
2008-04-13 05:48:43 -04:00
John Wiegley
f9ea284f0d *** no comment *** 2008-04-13 05:48:43 -04:00
John Wiegley
fcfdb129d9 *** no comment *** 2008-04-13 02:41:26 -04:00
John Wiegley
30a5d875f0 (config_t::regexps_to_predicate): Don't set the display predicate to
show only matching accounts when the --related flag is in use (which
was effectively masking out the whole point of using --related with
balance reports).
2008-04-13 02:41:26 -04:00
John Wiegley
3ba15e81a4 *** no comment *** 2008-04-13 02:41:26 -04:00
John Wiegley
5874af2058 *** no comment *** 2008-04-13 02:41:26 -04:00
John Wiegley
70b3eda8d1 *** no comment *** 2008-04-13 02:41:26 -04:00
John Wiegley
88a895a494 *** no comment *** 2008-04-13 02:41:26 -04:00
John Wiegley
0dc7584810 *** no comment *** 2008-04-13 02:41:26 -04:00
John Wiegley
13f375ae58 *** no comment *** 2008-04-13 02:41:26 -04:00
John Wiegley
793dbf26d9 *** no comment *** 2008-04-13 02:41:26 -04:00
John Wiegley
2d0d50df76 *** no comment *** 2008-04-13 02:41:25 -04:00
John Wiegley
c38119eaa0 (parse_transaction): Improved the @ check (scanning for a transaction
cost) so that it skips quoted symbol names and value expressions.
2008-04-13 02:41:25 -04:00
John Wiegley
8043c79413 (parse_value_term): Added support for general @name functions. This
used to mean Python functions, now it will be used for all further
value expression functions.  Right now this means the new @min(x,y)
and @max(x,y) functions.
2008-04-13 02:41:25 -04:00
John Wiegley
93ce64fbf7 *** no comment *** 2008-04-13 02:41:25 -04:00
John Wiegley
3dcfed2c4c (parse_amount): Don't interpret an initial opening parenthesis as
inline math, but rather see it as introducing a value expression.
2008-04-13 02:41:25 -04:00
John Wiegley
2209249974 (amount_t::valid): Don't verify the commodity as being non-null, since
NULL is a perfectly valid value for a commodity (it just means
null_commodity).  Also, never use commodity_->member, but always
commodity().member.
2008-04-13 02:41:25 -04:00
John Wiegley
a2b7e86508 Fixed some compiler complaints. 2008-04-13 02:41:25 -04:00
John Wiegley
0764170047 *** no comment *** 2008-04-13 02:41:25 -04:00
John Wiegley
27eb8b18ab (entries::format_last_entry): XML format now always uses the same date
format, and ignores --date-format.
2008-04-13 02:41:25 -04:00
John Wiegley
254b868fc1 *** no comment *** 2008-04-13 02:41:25 -04:00
John Wiegley
69ae3f0f3f (parse): Do not balance automated entries: they are now balanced as
part of the entry they match.  (parse): Report the remainder of failed
balances using `entry_balance'.  This can give a much better idea of
what went wrong, especially when values are being calculated.
2008-04-13 02:41:25 -04:00
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