summaryrefslogtreecommitdiff
path: root/src/report.cc
Commit message (Collapse)AuthorAgeFilesLines
* Fixed a problem with the "quoted" valexpr functionJohn Wiegley2010-03-051-2/+2
|
* Added some preliminary code for convert CSV to LedgerJohn Wiegley2010-03-051-0/+3
|
* Updated copyrights to 2003-2010John Wiegley2010-03-051-1/+1
|
* Renamed the "args" command to "query"John Wiegley2010-03-041-1/+5
|
* Added a --pivot=TAG optionJohn Wiegley2010-02-021-0/+1
| | | | | | This is equivalent to the following: --account='"TAG:" + tag(/TAG/)'
* Added a debug statement for report.predicateJohn Wiegley2010-02-021-2/+5
|
* Added a trim() value expression functionJohn Wiegley2009-11-251-0/+28
|
* Added options: --unrealized-gains and --unrealized-lossesAristid Breitkreuz2009-11-241-0/+2
| | | | | | | | | | | These options allow the user to specify what accounts names should be used for these two types of accounts. They are optional, and default to: --unrealized-gains "Equity:Unrealized Gains" --unrealized-losses "Equity:Unrealized Losses" These are intended to be set in one's ~/.ledgerrc file.
* Many improvements to Ledger's Python bindingsJohn Wiegley2009-11-191-9/+8
|
* Added an --unrealized option, for use with bal -VJohn Wiegley2009-11-191-0/+1
| | | | | | When this option is on, then in balance report which show market values, any gains or losses in value will be balanced into a pair of accounts called Equity:Unrealized Gains and Equity:Unrealized Losses.
* Decompile all amount expressions for accounts reportsJohn Wiegley2009-11-181-0/+6
| | | | | This happens after running through all the post handlers, before running any of the account handlers.
* It's OK for a report query to be emptyJohn Wiegley2009-11-181-14/+10
| | | | It's always possible the user only specified a display predicate.
* The new period parser is passing all testsJohn Wiegley2009-11-181-6/+7
|
* Renamed date_interval_t::end to finishJohn Wiegley2009-11-171-2/+2
|
* Added historical support for single-letter valexprsJohn Wiegley2009-11-141-0/+39
|
* Reorganized a bit of the reporting codeJohn Wiegley2009-11-121-48/+25
|
* Moved report normalization into report.ccJohn Wiegley2009-11-121-0/+171
|
* Removed unused codeJohn Wiegley2009-11-121-2/+0
|
* Renamed the pricesdb command to pricedbJohn Wiegley2009-11-121-4/+4
|
* Added new value expressions for value conversionJohn Wiegley2009-11-111-0/+81
| | | | | | | | | | | | | | They are: to_boolean to_int to_datetime to_date to_amount to_balance to_string to_mask to_sequence
* Added --date, similar to --account and --payeeJohn Wiegley2009-11-111-0/+1
| | | | | | | This lets you do things like store a date as the value of a tag, then run: ledger --date='has_tag("Foo") ? to_date(tag("Foo")) : date' reg
* Added floor() value expression functionJohn Wiegley2009-11-111-0/+8
|
* Added a --prepend-format optionJohn Wiegley2009-11-111-7/+15
| | | | | | | | This lets you, for example, debug registers that cull data from many different sources, without having to change the basic formatting string. You can locate each posting's location with this: ledger reg --prepend-format='%-25(filename + ":" + beg_line)'
* Moving the #include of unistring.h into format.hJohn Wiegley2009-11-101-1/+0
|
* Fixes to Python importing; removed "hello" precommandJohn Wiegley2009-11-101-18/+2
|
* account_amount() is now account().amountJohn Wiegley2009-11-101-27/+0
|
* XML reporting now works via the "xml" commandJohn Wiegley2009-11-091-0/+2
|
* Added basic foundation for XML reportingJohn Wiegley2009-11-091-0/+1
|
* Redesigned the draft_t classJohn Wiegley2009-11-091-1/+1
|
* Redesigned the expr_t, predicate_t, query_t classesJohn Wiegley2009-11-091-20/+11
|
* Added support for Boost.Regex w/ ICUJohn Wiegley2009-11-071-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.
* Renamed --set-reported-account to just --accountJohn Wiegley2009-11-061-11/+3
| | | | | | | This fits better with the --amount and --total options, which both change the amount and total used for calculation. Same with --account: it happens after filtering, but before calculation so that balance reports look as you'd expect.
* Added new account_total value expressionJohn Wiegley2009-11-051-0/+27
| | | | | This is used for accessing an account's current total within one's Ledger file.
* Moved xdata clearing code into each type properJohn Wiegley2009-11-051-5/+4
|
* Segregated symbols into 5 separate namespacesJohn Wiegley2009-11-041-275/+287
| | | | | | | | | | | | | | | | | | | | | 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 error message if a predicate query is invalidJohn Wiegley2009-11-031-1/+9
|
* New: --set-reported-account, --set-reported-payeeJohn Wiegley2009-11-011-0/+2
|
* Removed most #if 0 blocks and callout commentsJohn Wiegley2009-10-311-6/+2
|
* Improved arg checking for several valexpr functionsJohn Wiegley2009-10-311-4/+4
|
* Add valexpr functions for lot dates, prices and tagsJohn Wiegley2009-10-311-0/+33
|
* Added a --forecast-years optionJohn Wiegley2009-10-311-0/+1
| | | | | This sets how many years of forecasting Ledger will do before it terminates the attempt.
* Moved ownership of master account into journal_tJohn Wiegley2009-10-301-2/+2
| | | | The journal_t now completely represents the data part of a session.
* Setting --date-format in ~/.ledgerrc works againJohn Wiegley2009-10-291-0/+2
|
* Fixed "show" keywords, and added // syntaxJohn Wiegley2009-10-281-11/+9
|
* Fixes to the new query expression parserJohn Wiegley2009-10-281-2/+5
|
* Rewrote the report query parserJohn Wiegley2009-10-281-2/+2
| | | | | | It is now a full parser that parses report queries directly into value expression trees. These then get rendered into text so that other options may extend the expression.
* -D now means --daily, not --deviationJohn Wiegley2009-10-281-1/+1
| | | | | | | | | | | | Because --daily is more commonly desired, and fits the pattern of the other periodic switches: -D --daily -W --weekly -M --monthly -Y --yearly Only --quarterly doesn't have its own short option.
* Sort by default unless --unsorted is selectedJohn Wiegley2009-10-281-0/+1
|
* Removed unnused parameter to value_t::printJohn Wiegley2009-10-271-5/+2
|
* Added --actual-dates, for overriding --effectiveJohn Wiegley2009-10-271-0/+1
| | | | | This is so that if someone has --effective in their .ledgerrc, they can force the use of actual dates.