summaryrefslogtreecommitdiff
path: root/src/report.cc
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Support a --now option, for testing purposesJohn Wiegley2009-10-271-0/+1
| | | | | | This sets Ledger's notion of the "current time" to the given date. This makes it possible to have stable output from budgeting and forecasting reports, for the sake of baseline tests.
* Added a new "cleared" reportJohn Wiegley2009-10-271-1/+11
| | | | | | This is a balance report with three columns: Current balance | Cleared balance | Last cleared date
* Added a new "budget" reportJohn Wiegley2009-10-271-1/+14
| | | | | | This is a balance report with four columns: Amount spent | Budgeted Amount | Difference | Percentage
* Fixed a data lifetime bugJohn Wiegley2009-10-271-2/+7
| | | | | | This was causing budget totals not to appear in balance reports. Fixes 8254755E-7B61-47C8-B48E-A2A7FD79EB80
* Added t and T as valexpr synonymsJohn Wiegley2009-10-261-0/+7
| | | | t = display_amount, T = display_total
* Fixed sorting in bal reports when --flat is usedJohn Wiegley2009-10-261-4/+7
| | | | | | | Note that sorting on the "total" is not the same thing as sorting on the "display_total" when multiple commodities are in use and the -X flag is selected! One should always sort on display_total, since that's the value which is shown in the report. 'T' is a synonym for display_total.
* Added an "echo" command, for REPL testingJohn Wiegley2009-10-261-0/+10
|
* Rewrote the way date and time I/O is managedJohn Wiegley2009-10-251-3/+7
|
* Fixed many compiler warnings from g++ 4.4John Wiegley2009-10-251-16/+16
|
* Restored --price option, added baseline testJohn Wiegley2009-06-261-3/+13
| | | | | | | This option reports only in terms of the annotated price of the commodities involved, otherwise it reports the amounts themselves. It can be used in conjunction with other reports, as it applies to the displayed amounts, not the actual amounts being calculated.
* The --download option is now fully restoredJohn Wiegley2009-06-261-5/+5
|
* More refactoring for --downloadJohn Wiegley2009-06-241-1/+0
|
* Restored --download, although not done yetJohn Wiegley2009-06-241-5/+0
| | | | | | The problem at this point is that it's recording prices in the price database multiple times; it should only need to download a price for each commodity once per day.
* Added a --no-color option, to disable --colorJohn Wiegley2009-06-221-0/+1
|
* Restored option --period-sortJohn Wiegley2009-06-211-1/+1
| | | | This option is just an alias for --sort-xacts.
* Restored --percent option, added baseline testJohn Wiegley2009-06-211-2/+11
|
* Fixes to the 'xact' command (used to be 'entry')John Wiegley2009-06-191-1/+6
|
* Commented out an internal-only optionJohn Wiegley2009-06-181-0/+4
|
* The -X option now accepts price settingsJohn Wiegley2009-06-181-27/+14
| | | | | | | For example, if you had 100 AU (onces of gold) and wanted to report it in dollars, but at a price of $997 per ounce, you could now easily say: ledger bal -X '$,AU=$997'
* When --end is used, set a "terminus" dateJohn Wiegley2009-06-161-0/+8
| | | | | | | This means that final balance valuations (with -V or -X) will be done in terms of the date given to --end, rather than based on the current day. Fixes 647D5DB9-DBBB-47C8-80CE-F3F70E3B0253
* Move amount colorization deeper into the coreJohn Wiegley2009-06-161-3/+4
| | | | | | | | This is necessary in order to redden negative amounts correctly under all circumstances, such as component amounts of a multi-commodity balance. Fixes 727B2DF8-A2A1-4716-9C15-547F20D5F933
* Added new debug option --optionsJohn Wiegley2009-06-021-14/+19
| | | | | This reports which options are in place before invoking a command, and where exactly each option value came from.
* Enabled use of pre-compiled headers by defaultJohn Wiegley2009-03-101-0/+2
|
* Revised the ways statistics are computedJohn Wiegley2009-03-061-2/+4
| | | | | | | It is no longer done in calc_posts, but recursively on each account. This allows value expressions to ask statistical questions, like "earliest cleared posting?" (TBD) from any specific account, computed lazily.
* Implemented --unround using value expressionsJohn Wiegley2009-03-061-0/+7
|
* Removed the --totals optionJohn Wiegley2009-03-051-1/+0
|
* Reduced the #include dependency tree to a minimumJohn Wiegley2009-03-041-5/+18
|
* Normalized how account totals are calculatedJohn Wiegley2009-03-031-18/+4
|
* Allow special %{} formatting sequenceJohn Wiegley2009-03-031-2/+2
| | | | | | | | | | | | | | | Although %(amount) inserts an item's amount, it only does exactly that. There is no special consideration like stripping of lot details, or reduction to the base commodity, etc. For those things, and to make sure it was display in red if negative, the canonical form would be: %(ansify_if(justify(scrub(amount), 12, -1, true), red if amount < 0)) You can now use the special %{} form as an alternate to this: %12{amount, red if amount < 0} The two expand to the same underlying expression.
* Made all the ANSI color names into valexpr namesJohn Wiegley2009-03-031-0/+67
|
* Moved fn_false to be a non-member functionJohn Wiegley2009-03-031-1/+4
|
* Added a "null" value for value expressionsJohn Wiegley2009-03-031-0/+9
|