summaryrefslogtreecommitdiff
path: root/src/report.h
Commit message (Collapse)AuthorAgeFilesLines
...
* Fixed the "generate" commandJohn Wiegley2010-06-101-3/+3
|
* Corrected some math used by the budget commandJohn Wiegley2010-06-101-5/+5
|
* Fixed interaction with -V/X and grouped postingsJohn Wiegley2010-06-091-5/+7
| | | | | | | | | | With -s, -M/Y/D, -n, and a few other flags, postings get "grouped" into meta-transactions that contain more postings than before. In all these cases, -V use the date of the *earliest* posting in that group, which makes little sense and caused breakages with -J. It now uses the latest date. Fixes #197 / 68EAF363-D0FE-4127-866E-A5AEBACB65D6
* Corrected implementation of --percentJohn Wiegley2010-06-061-1/+1
|
* Added new command: "pricemap [DATE]"John Wiegley2010-06-041-0/+1
| | | | | | | | | | | | This outputs the pricing relationship of commodities in your data file, as of DATE (optional), using the DOT language. If you have graphviz installed, it can be viewed quite simply using: ledger pricemap | dotty - Each relationship in the graph shows the conversion factor to exchange one commodity for another, and the date at which this factor was determined.
* New: --group-by=EXPR and --group-title-format=FMTJohn Wiegley2010-05-301-0/+18
| | | | | | | | | | | | | | | | | | | | | The --group-by option allows for most reports to be split up into sections based on the varying value of EXPR. For example, to see register subtotals by payee, use: ledger reg --group-by=payee -s This works for separated balances too: ledger bal --group-by=payee Another interesting possibility is seeing a register of all the accounts affected by a related account: ledger reg -r --group-by=payee The option --group-title-format can be used to add a separator bar to the group titles. The option --no-titles can be used to drop titles altogether.
* Option --rounding inverted to --no-roundingJohn Wiegley2010-05-301-2/+2
|
* Added new option: --no-titlesJohn Wiegley2010-05-301-0/+2
|
* Added --rounding option, which is off by defaultJohn Wiegley2010-05-231-0/+2
| | | | | | | | The purpose of this option is to add special "<Rounding>" postings, to ensure that a regiter's running total is *always* the sum of its postings. Within --rounding, these adjustment postings are missing, which was the behavior in Ledger 2.x. It can be orders of magnitude slower to turn it on for large reports with many commodities.
* Created new valexpr variable display_accountJohn Wiegley2010-05-221-5/+5
| | | | | | | | | Where display_account might be '(Expenses:Food)', account will always be 'Expenses:Food'. account is now used by all matching and query operations, while display_account is used in the various report outputs (besides balance, which never distinguished virtual accounts). Fixes F2832452-4521-49A3-B854-F4E12CC4D82E
* Added new option --prepend-widthJohn Wiegley2010-05-221-5/+10
| | | | | | | | This is useful for making sure that the column containing the results of --prepend-format is a consistent width throughout the report (including those lines where it is not applied). Fixes 64F9D913-75E1-4830-A3D9-29B72442E68B
* Changed the report generated by the csv commandJohn Wiegley2010-05-221-2/+3
| | | | | | | | | | | Fields are now: Date,Code,Payee,Account,Commodity,Total,State,Note Instead of outputting amounts potentially as $1,000.00 (which was an error anyway), the output is now: $,1000.00. This makes the commodity available in a separate field, and removes display of thousands markers. Also, european formatting is always off.
* Option --count sums payees, account, commoditiesJohn Wiegley2010-05-221-0/+1
|
* Added a simple print() value expression functionJohn Wiegley2010-05-081-0/+1
| | | | This is really for debugging more than anything else.
* Added new --meta and --meta-width optionsJohn Wiegley2010-03-171-5/+14
| | | | | | | | The usages are: --meta=<TAG> prepend value of TAG before every line --meta-width=<NUM> force the meta column to be NUM wide --meta=<TAG>:<NUM> shortcut that also applies --meta-width
* Rewrite the "print" command as a custom functionJohn Wiegley2010-03-081-18/+3
| | | | | There ended up being too many corner cases for the generalized formatter to handle.
* Updated copyrights to 2003-2010John Wiegley2010-03-051-1/+1
|
* Added a --pivot=TAG optionJohn Wiegley2010-02-021-0/+3
| | | | | | This is equivalent to the following: --account='"TAG:" + tag(/TAG/)'
* Guard against divide by zero error in -A reg reportJohn Wiegley2010-01-211-1/+1
|
* Added a trim() value expression functionJohn Wiegley2009-11-251-0/+1
|
* Added options: --unrealized-gains and --unrealized-lossesAristid Breitkreuz2009-11-241-0/+5
| | | | | | | | | | | 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.
* Added an --unrealized option, for use with bal -VJohn Wiegley2009-11-191-0/+3
| | | | | | 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.
* The new period parser is passing all testsJohn Wiegley2009-11-181-13/+18
|
* Don't bold the payee for virtual or temporary xactsJohn Wiegley2009-11-131-1/+1
|
* Reorganized a bit of the reporting codeJohn Wiegley2009-11-121-0/+30
|
* Moved report normalization into report.ccJohn Wiegley2009-11-121-0/+2
|
* Renamed the pricesdb command to pricedbJohn Wiegley2009-11-121-3/+3
|
* Added new value expressions for value conversionJohn Wiegley2009-11-111-0/+9
| | | | | | | | | | | | | | 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/+2
| | | | | | | 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/+1
|
* Added a --prepend-format optionJohn Wiegley2009-11-111-0/+9
| | | | | | | | 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)'
* Fixes to Python importing; removed "hello" precommandJohn Wiegley2009-11-101-2/+0
|
* account_amount() is now account().amountJohn Wiegley2009-11-101-1/+0
|
* Removed a bunch of empty commentsJohn Wiegley2009-11-081-9/+0
|
* Column widths are always calculated nowJohn Wiegley2009-11-071-30/+6
|
* Renamed --set-reported-account to just --accountJohn Wiegley2009-11-061-18/+2
| | | | | | | 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/+1
| | | | | This is used for accessing an account's current total within one's Ledger file.
* Segregated symbols into 5 separate namespacesJohn Wiegley2009-11-041-2/+4
| | | | | | | | | | | | | | | | | | | | | 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)
* Set default LESS options to -FRSXJohn Wiegley2009-11-021-1/+1
|
* New: --set-reported-account, --set-reported-payeeJohn Wiegley2009-11-011-0/+4
|
* Add valexpr functions for lot dates, prices and tagsJohn Wiegley2009-10-311-0/+3
|
* Added a --forecast-years optionJohn Wiegley2009-10-311-0/+2
| | | | | This sets how many years of forecasting Ledger will do before it terminates the attempt.
* Setting --date-format in ~/.ledgerrc works againJohn Wiegley2009-10-291-0/+4
|
* If isatty is available, no colors/pager for non-ttysJohn Wiegley2009-10-291-1/+16
|
* Fixed a gcc warningJohn Wiegley2009-10-281-2/+0
|
* Make "less" the default pager, similar to GitJohn Wiegley2009-10-281-1/+28
|
* No more trailing spaces in the print reportJohn Wiegley2009-10-281-3/+3
|
* -D now means --daily, not --deviationJohn Wiegley2009-10-281-2/+2
| | | | | | | | | | | | 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/+3
|
* Added --actual-dates, for overriding --effectiveJohn Wiegley2009-10-271-0/+3
| | | | | This is so that if someone has --effective in their .ledgerrc, they can force the use of actual dates.