Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Added any() and all() value expression macros | John Wiegley | 2010-05-08 | 1 | -0/+48 | |
| | | | | | | | | | | | | | | | | | | | | 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. | |||||
* | Updated copyrights to 2003-2010 | John Wiegley | 2010-03-05 | 1 | -1/+1 | |
| | ||||||
* | Some minor refactoring of the textual parser | John Wiegley | 2010-02-05 | 1 | -0/+14 | |
| | ||||||
* | Added actual_date() methods for items | John Wiegley | 2010-02-05 | 1 | -0/+12 | |
| | ||||||
* | Added historical support for single-letter valexprs | John Wiegley | 2009-11-14 | 1 | -2/+26 | |
| | ||||||
* | Moving the #include of unistring.h into format.h | John Wiegley | 2009-11-10 | 1 | -1/+0 | |
| | ||||||
* | Whitespace fix | John Wiegley | 2009-11-10 | 1 | -4/+4 | |
| | ||||||
* | Fixes to the value expression parser and evaluator | John Wiegley | 2009-11-10 | 1 | -18/+19 | |
| | ||||||
* | account_amount() is now account().amount | John Wiegley | 2009-11-10 | 1 | -37/+39 | |
| | ||||||
* | XML reporting now works via the "xml" command | John Wiegley | 2009-11-09 | 1 | -0/+95 | |
| | ||||||
* | Added support for Boost.Regex w/ ICU | John Wiegley | 2009-11-07 | 1 | -1/+1 | |
| | | | | | This allows for correct searching of UTF-8 encoded strings, such as lower-case versions of Russian words to find mixed-case words. | |||||
* | If a posting's amount is null, return 0L | John Wiegley | 2009-11-05 | 1 | -0/+6 | |
| | ||||||
* | 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) | |||||
* | Added "reported posts" into account xdata | John Wiegley | 2009-11-02 | 1 | -0/+6 | |
| | | | | | | | | | This is necessary because sometimes, a post from one account will get reported as though it were in another account (this happens with --budget, to show child account postings within their parent account). In that case, the account needs to remember which postings have been reported as being within it, so that it can add these amounts to its own total in the balance report. | |||||
* | A posting's note includes its parent xact's note | John Wiegley | 2009-11-01 | 1 | -0/+11 | |
| | ||||||
* | Removed most #if 0 blocks and callout comments | John Wiegley | 2009-10-31 | 1 | -2/+2 | |
| | ||||||
* | Renamed two methods, for consistency's sake | John Wiegley | 2009-10-27 | 1 | -1/+1 | |
| | ||||||
* | Made the id function available in post contexts | John Wiegley | 2009-10-27 | 1 | -0/+22 | |
| | ||||||
* | Fixed many compiler warnings from g++ 4.4 | John Wiegley | 2009-10-25 | 1 | -1/+2 | |
| | ||||||
* | Restored --percent option, added baseline test | John Wiegley | 2009-06-21 | 1 | -0/+2 | |
| | ||||||
* | Restored pricesdb command and --pricesdb-format option | John Wiegley | 2009-06-18 | 1 | -0/+6 | |
| | ||||||
* | 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 | -2/+3 | |
| | ||||||
* | Enriched the behavior of post_t::add_to_value | John Wiegley | 2009-03-05 | 1 | -3/+21 | |
| | | | | | The new behavior will be used in future by some pending topic branches I'm working on. | |||||
* | Renamed some flags and members in post_t | John Wiegley | 2009-03-05 | 1 | -10/+8 | |
| | ||||||
* | Reduced the #include dependency tree to a minimum | John Wiegley | 2009-03-04 | 1 | -2/+3 | |
| | ||||||
* | Gather account details in a details_t structure | John Wiegley | 2009-03-03 | 1 | -2/+2 | |
| | ||||||
* | Added a new "account_amount" valexpr function | John Wiegley | 2009-03-03 | 1 | -0/+31 | |
| | | | | At the moment, it's only useful during parsing. | |||||
* | Changed "priced" to "cost_calculated" for clarity | John Wiegley | 2009-02-27 | 1 | -4/+4 | |
| | ||||||
* | Fixed bugs relating to sign and rounding of costs | John Wiegley | 2009-02-27 | 1 | -3/+9 | |
| | ||||||
* | Fixed the way item state is parsed and managed | John Wiegley | 2009-02-27 | 1 | -11/+0 | |
| | ||||||
* | The -B, -G, -V reports now show rounding amounts | John Wiegley | 2009-02-26 | 1 | -2/+10 | |
| | | | | | | | | | This way, if the running total is off by a penny or two due to rounding of one or more commodities in the account, the user will see it. This commit also reorganizes the testing code a bit, which I did after adding the ninth test series (ConfirmTests), to validate the new rounding code. | |||||
* | Fix for sensitive compilation environments. | Eugene Morozov | 2009-02-25 | 1 | -1/+1 | |
| | ||||||
* | Output "@ AMOUNT" cost in the print report | John Wiegley | 2009-02-24 | 1 | -11/+24 | |
| | ||||||
* | Switched from using POST_AUTO to ITEM_GENERATED | John Wiegley | 2009-02-24 | 1 | -6/+0 | |
| | ||||||
* | The Great Renaming, Part II | John Wiegley | 2009-02-23 | 1 | -0/+336 | |
The last commit did not contain the majority of changes because of a slight mishap. This contains the real changeset. |