summaryrefslogtreecommitdiff
path: root/src/report.h
Commit message (Collapse)AuthorAgeFilesLines
...
* Don't use auto-widths for widths explicitly givenJohn Wiegley2009-02-201-10/+20
|
* Rewrote the equity command, which is working againJohn Wiegley2009-02-201-4/+1
| | | | | | The old implementation used an account formatter, and was very specialized. The new is done as a transaction filter, and works along with everything else, eliminating bugs special to the equity report.
* Use the 'market' function, not 'market_value'John Wiegley2009-02-191-2/+2
|
* Added a new --columns= optionJohn Wiegley2009-02-191-0/+2
|
* The sequence -M -p 2004 now equals -p 2004 -MJohn Wiegley2009-02-191-57/+54
|
* Restored the -j and -J optionsJohn Wiegley2009-02-191-10/+7
|
* Moved init of options to the options themselvesJohn Wiegley2009-02-191-9/+69
|
* Improved how register reports are formattedJohn Wiegley2009-02-191-4/+26
| | | | | | | | | | | | As a result, --wide is working again, and --wide-register-format has been removed. Also, the following new options are recognized, for controlling per-column formatting: --date-width NUM --payee-width NUM --account-width NUM --amount-width NUM --total-width NUM
* Added --flat option, to flatten the balance reportJohn Wiegley2009-02-171-0/+1
|
* The option --cost is now an alias for --basisJohn Wiegley2009-02-171-1/+0
|
* Added new --set-acount and --set-payee optionsJohn Wiegley2009-02-161-0/+2
| | | | | | These fully generalize the previous --payee-as-account and such options, which, for example, is now implemented to be the same as saying, "--set-account payee".
* Added several new reporting optionsJohn Wiegley2009-02-161-1/+4
| | | | | | | | | | | | | | | To help with gathering specific reports: - --payee-as-account copies the entry's payee field to the account, allowing the subtotal report to show unique payees for each period. - --comm-as-account copies the transaction's amount's commodity to the account. - --code-as-account copies the entry's code to the account Also created aliases for some of these options, for conistency's sake: - --commodity-as-payee is now an alias for --comm-as-payee - --commodity-as-account is now an alias for --comm-as-account
* Fixed several unused value and param warningsJohn Wiegley2009-02-161-4/+4
|
* Moved around some functions for clarityJohn Wiegley2009-02-161-11/+0
|
* The -n option for bal command is working againJohn Wiegley2009-02-161-3/+3
| | | | | The fix was that when appending new predicates, enclosed both sides of the AND with parentheses.
* Made several of the filters more context awareJohn Wiegley2009-02-151-2/+3
| | | | | This resolves certain issues where value expressions were not being looked up within their full context.
* Normalized handling of several report optionsJohn Wiegley2009-02-151-58/+64
|
* Re-enabled the --format (-F) optionJohn Wiegley2009-02-151-0/+6
|
* The "xact" variable now returns null for accountsJohn Wiegley2009-02-151-0/+3
|
* Split up session_t::reread_journal_files()John Wiegley2009-02-151-1/+2
| | | | | You now call session_t::close_journal_files() followed by session_t::read_journal_files().
* Change a few calls to on() to use set_expr()John Wiegley2009-02-151-6/+5
|
* Parse '/' in an operator context as "div"John Wiegley2009-02-151-1/+1
|
* Restored the --average (-A) report optionJohn Wiegley2009-02-151-1/+5
|
* Added a helper method for setting expr optionsJohn Wiegley2009-02-151-14/+26
| | | | | | | | | | | Now one does: parent->HANDLER(display_total_).set_expr("total"); Rather than what was required previously: parent->HANDLER(display_total_).on("total"); parent->HANDLER(display_total_).expr = "total";
* Added #if 0'd stub code from 2.x's option.ccJohn Wiegley2009-02-141-3/+26
|
* Restored the --actual and --real optionsJohn Wiegley2009-02-141-2/+9
|
* Re-enabled periodic reporting options (-M, etc)John Wiegley2009-02-141-5/+32
|
* Enabled --cleared, --uncleared and --pendingJohn Wiegley2009-02-131-3/+14
| | | | | Note that the --uncleared flag includes --pending, since it specifically means "not yet cleared".
* Re-activated the budgeting flagsJohn Wiegley2009-02-131-3/+12
| | | | However, the budget reports themselves still need to be tested.
* Added a "reload" command, for use at the REPLJohn Wiegley2009-02-131-0/+5
| | | | | | | Created a new function, session_t::reread_journal_files, which throws away all previous state data and reads in the same files again. This is needed to allow Emacs to communicate with Ledger via the REPL, so that it tell Ledger when it has made changes to the user's data file.
* Added a new valexpr function: format_dateJohn Wiegley2009-02-131-0/+1
| | | | | | | | | This can be used to format dates with a specific pattern, such as: format_date(entry.date, "%Y/%m/%d") This is used by the print command to ensure that Ledger is able to parse back what it prints.
* Restored the "prices" command.John Wiegley2009-02-121-3/+1
|
* Turned on the "emacs" command and budgeting, though neither are tested yet.John Wiegley2009-02-121-0/+7
|
* Rewrote the "entry" command. It's ALIVE!John Wiegley2009-02-111-0/+1
|
* Wired up the "entry" command from 2.x, though it still needs to be ported.John Wiegley2009-02-101-0/+10
|
* Removed an unneeded method declaration.John Wiegley2009-02-101-1/+0
|
* When -V is used, show the market value for the amount as well as the total.John Wiegley2009-02-091-0/+1
|
* Added a new --collapse-if-zero option.John Wiegley2009-02-091-0/+4
|
* Had to step back from a change that was breaking regular reports.John Wiegley2009-02-091-1/+4
|
* Pass amount expression to calc_xacts, to be used for computing the total.John Wiegley2009-02-081-0/+1
|
* Correctly compile the expressions passed to -t and -T.John Wiegley2009-02-081-0/+12
|
* Inverted the default display mode for balance reports. Use -n to collapseJohn Wiegley2009-02-081-1/+6
| | | | them, as this fits better with what -n does for register reports.
* Added support for value expression definitions.John Wiegley2009-02-081-0/+4
| | | | | | | | Example: ] expr f(x) := x + 100 ] expr f(100) 200
* Added stub for --pending report flag.John Wiegley2009-02-081-0/+1
|
* Reimplemented -B, -V, -I and -O.John Wiegley2009-02-071-4/+26
|
* Fixed some #include ordering issues.John Wiegley2009-02-071-1/+1
|
* Renamed escape to quoted, and fixed up the csv report.John Wiegley2009-02-071-1/+1
|
* Allow value expressions to gain access to option settings.John Wiegley2009-02-071-0/+6
| | | | | | | | | | For example, "ledger eval options.limit" prints 0 (for false), but: "ledger -l hello eval options.limit" print "hello"s, since the value of options.limit, once set to a value, is that string. For flag options, such as -Y, eval prints 0 if unset, and 1 if set. This feature allows value expressions to be conditionalized based on the presence of user options.
* Fixed the way that --limit, --only and --display are handled.John Wiegley2009-02-071-3/+21
|
* More revision to the way options are handled; reworked CSV command.John Wiegley2009-02-071-1/+9
|