Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Interpolate uses of $account in automated postings | John Wiegley | 2010-05-22 | 1 | -2/+8 | |
| | | | | Fixes 5CB52887-408E-48F0-8798-3C640D0295B3 | |||||
* | Added any() and all() value expression macros | John Wiegley | 2010-05-08 | 1 | -0/+38 | |
| | | | | | | | | | | | | | | | | | | | | any() matches an expression against every post in a transaction or account, and returns true if any of them are true. all() tests if all are true. For example: ledger -l 'account =~ /Expense/ & any(account =~ /MasterCard/)' reg This reports every posting affecting an Expense account (regex match), but only if some other posting in the same transaction affects the MasterCard account. Both functions also take a second boolean argument. If it is false, the "source" posting is not considered. For example: ledger -l 'any(/x/, false)' This matches any posting where a *different* posting in the same transaction contains the letter 'x'. | |||||
* | Rewrite the "print" command as a custom function | John Wiegley | 2010-03-08 | 1 | -2/+2 | |
| | | | | | There ended up being too many corner cases for the generalized formatter to handle. | |||||
* | Abstracted an sha1sum() function | John Wiegley | 2010-03-06 | 1 | -6/+1 | |
| | ||||||
* | Updated copyrights to 2003-2010 | John Wiegley | 2010-03-05 | 1 | -1/+1 | |
| | ||||||
* | Many improvements to Ledger's Python bindings | John Wiegley | 2009-11-19 | 1 | -6/+7 | |
| | ||||||
* | Changed a use of balance_error to amount_error | John Wiegley | 2009-11-14 | 1 | -1/+1 | |
| | ||||||
* | Memoize results from the fast predicate matcher | John Wiegley | 2009-11-14 | 1 | -1/+16 | |
| | | | | | This gains another 15% for the parser, again with a very simple change that has no impact if the fast predicate matcher fails to work. | |||||
* | Spot optimization for simple automated xact exprs | John Wiegley | 2009-11-14 | 1 | -2/+65 | |
| | | | | | | This reduces parsing time in the optimized build by 25%, and was a safe, easy patch. If the "quick predicate evaluator" fails, we disable it from that point on go back to what the standard code does. | |||||
* | Added has_xdata() methods for journal_t and xact_t | John Wiegley | 2009-11-12 | 1 | -0/+9 | |
| | ||||||
* | Transactions now verified after applying auto xacts | John Wiegley | 2009-11-11 | 1 | -0/+57 | |
| | | | | | This way you cannot violate the balancing rules, not even by adding a stray posting via an automated transaction. | |||||
* | Automated postings defer amount expression calculation | John Wiegley | 2009-11-11 | 1 | -18/+29 | |
| | | | | | | | | | | | | | | | | | This allows for value expressions to be used which reference the incoming posting, for example: = Income:Clients: (Liabilities:Taxes:VAT1) (floor(amount) * 1) (Liabilities:Taxes:VAT2) 0.19 2009/07/27 * Invoice Assets:Bank:Checking $1,190.45 Income:Clients:ACME_Inc The automated posting for VAT1 will use the floored amount multiplied by a factor, while the posting for VAT2 multiples the whole amount as before. | |||||
* | Fixed automated posts not appearing in bal reports | John Wiegley | 2009-11-10 | 1 | -0/+1 | |
| | ||||||
* | Fix for automated amount multipliers and null amounts | John Wiegley | 2009-11-09 | 1 | -1/+3 | |
| | ||||||
* | XML reporting now works via the "xml" command | John Wiegley | 2009-11-09 | 1 | -0/+59 | |
| | ||||||
* | Renamed journal_t::basket to bucket | John Wiegley | 2009-11-07 | 1 | -2/+2 | |
| | ||||||
* | Report sought magnitude when balancing errors occur | John Wiegley | 2009-11-05 | 1 | -15/+17 | |
| | ||||||
* | Moved xdata clearing code into each type proper | John Wiegley | 2009-11-05 | 1 | -0/+7 | |
| | ||||||
* | Segregated symbols into 5 separate namespaces | John Wiegley | 2009-11-04 | 1 | -2/+6 | |
| | | | | | | | | | | | | | | | | | | | | | The different namespaces are: Function Value expression functions, which receive a "context" Option Command-line options Precommand Commands which are invoked before reading the journal Command Commands which are invoked after reading the journal Directive Directives that occur at column 0 in a data file This greatly eases the ability for Python uses to add intercept hooks to change how the basic Ledger module functions. An example of what should be possible soon: import ledger def my_foo_handler(value): print "--foo received:", value ledger.add_handler(ledger.Option, "foo=", my_foo_handler) | |||||
* | Fixed copy constructors for transactions | John Wiegley | 2009-11-01 | 1 | -2/+2 | |
| | ||||||
* | Removed excessive validity check from xact_t::valid | John Wiegley | 2009-11-01 | 1 | -4/+0 | |
| | ||||||
* | Fix to xact_t::valid() | John Wiegley | 2009-11-01 | 1 | -1/+1 | |
| | ||||||
* | Removed most #if 0 blocks and callout comments | John Wiegley | 2009-10-31 | 1 | -4/+0 | |
| | ||||||
* | Add a position_t object for tracking item positions | John Wiegley | 2009-10-30 | 1 | -2/+2 | |
| | | | | It is also optional, which is useful for generated items. | |||||
* | Added some additional assertion tests re: temps | John Wiegley | 2009-10-28 | 1 | -4/+11 | |
| | ||||||
* | Support balancing of postings with integer amounts | John Wiegley | 2009-10-27 | 1 | -1/+6 | |
| | ||||||
* | Use the WRITTEN date format for idstrings | John Wiegley | 2009-10-27 | 1 | -1/+1 | |
| | ||||||
* | Redid the way temporaries are handled in filtering | John Wiegley | 2009-10-27 | 1 | -1/+1 | |
| | ||||||
* | Made the id function available in post contexts | John Wiegley | 2009-10-27 | 1 | -19/+35 | |
| | ||||||
* | New valexpr functions: id, idstring, magnitude | John Wiegley | 2009-10-25 | 1 | -0/+39 | |
| | | | | | | id returns a unique SHA1 id of a transaction. idstring is the string that the SHA1 is based on. magnitude is the sum of the positive side of a transaction. | |||||
* | Split commodity.h/cc into three files | John Wiegley | 2009-06-24 | 1 | -3/+4 | |
| | | | | | | commodity.h - code for commodity_t annotate.h - commodity annotations pool.h - commodity pool management | |||||
* | Fixes to the 'xact' command (used to be 'entry') | John Wiegley | 2009-06-19 | 1 | -2/+8 | |
| | ||||||
* | Enabled use of pre-compiled headers by default | John Wiegley | 2009-03-10 | 1 | -0/+2 | |
| | ||||||
* | Changed the way that account balances are computed | John Wiegley | 2009-03-06 | 1 | -10/+6 | |
| | ||||||
* | Reduced the #include dependency tree to a minimum | John Wiegley | 2009-03-04 | 1 | -2/+2 | |
| | ||||||
* | Cured several harmless compiler warnings | John Wiegley | 2009-03-04 | 1 | -0/+4 | |
| | ||||||
* | Changed many assert() calls to VERIFY() | John Wiegley | 2009-03-04 | 1 | -1/+1 | |
| | ||||||
* | Gather account details in a details_t structure | John Wiegley | 2009-03-03 | 1 | -2/+4 | |
| | ||||||
* | Corrected warnings g++-4.3.3 was complaining about | John Wiegley | 2009-02-28 | 1 | -1/+2 | |
| | ||||||
* | Changed "priced" to "cost_calculated" for clarity | John Wiegley | 2009-02-27 | 1 | -3/+3 | |
| | ||||||
* | Fixed bugs relating to sign and rounding of costs | John Wiegley | 2009-02-27 | 1 | -7/+13 | |
| | ||||||
* | Fixed the way item state is parsed and managed | John Wiegley | 2009-02-27 | 1 | -16/+7 | |
| | ||||||
* | Print more context if an automated xact fails | John Wiegley | 2009-02-26 | 1 | -0/+9 | |
| | ||||||
* | Marked all strings needing internationalization | John Wiegley | 2009-02-25 | 1 | -6/+6 | |
| | | | | | | | | | | | | | | | | These strings are now collected automagically in the file po/ledger.pot. If you'd like to produce a translation, just run this command after building Ledger: msginit -l LOCALE -o LANG.po -i po/ledger.pot Where LOCALE is a string like de or en_GB, and LANG is a short descriptive word for your language. Then send me this .po file so I can commit it to the Ledger sources (alternatively, you could maintain the file in a fork on GitHub), and setup the build script to format and install your new message catalog during a "make install". | |||||
* | Fixed an issue involving costs and reduced values | John Wiegley | 2009-02-24 | 1 | -64/+74 | |
| | ||||||
* | Improved the way that entries are balanced | John Wiegley | 2009-02-24 | 1 | -24/+59 | |
| | ||||||
* | Switched from using POST_AUTO to ITEM_GENERATED | John Wiegley | 2009-02-24 | 1 | -2/+3 | |
| | ||||||
* | Fixed a minor bug in handling of automated xacts | John Wiegley | 2009-02-23 | 1 | -1/+1 | |
| | | | | | There was a if statement with an inverse boolean meaning, which caused some automated transaction postings to have a null amount. | |||||
* | The Great Renaming, Part II | John Wiegley | 2009-02-23 | 1 | -215/+303 | |
| | | | | | The last commit did not contain the majority of changes because of a slight mishap. This contains the real changeset. | |||||
* | Many fixes to both --market and --exchange | John Wiegley | 2009-02-23 | 1 | -0/+3 | |
| |