summaryrefslogtreecommitdiff
path: root/src/report.h
Commit message (Collapse)AuthorAgeFilesLines
...
* Added --dc option, for debit/credit style reportsJohn Wiegley2012-03-101-5/+71
|
* -H now implies -VJohn Wiegley2012-03-091-0/+1
|
* Reworked the way that options are handledJohn Wiegley2012-03-091-351/+284
|
* Added --historical optionJohn Wiegley2012-03-081-0/+8
|
* Added nail_down() for pinning market value exprsJohn Wiegley2012-03-081-0/+1
|
* Many options now have additive effectJohn Wiegley2012-03-071-46/+36
| | | | | | | | | For example, -A and -V used to override each other, whereas now: -A report the average amount -V report all amounts at current value -AV report the current value of the average -VA report the average of all current values
* Removed value_t::price and balance_t::priceJohn Wiegley2012-03-071-1/+0
|
* Guard against double-freeing of report objectsJohn Wiegley2012-03-051-1/+1
|
* Increased file copyrights to 2012John Wiegley2012-02-291-1/+1
|
* Renamed actual/effective dates to primary/auxiliaryJohn Wiegley2012-02-281-5/+5
|
* Added --rich-data for 'convert', and SHA1 checksum checkingJohn Wiegley2012-02-261-0/+3
|
* Added --auto-match option, for use with 'convert'John Wiegley2012-02-261-0/+2
|
* Report an error in the case of '(1' (missing rparen)John Wiegley2011-11-101-1/+1
| | | | Fixes #557
* Added round() and unround() valexpr functionsJohn Wiegley2011-10-241-0/+2
|
* Cleanup whitespaceJohn Wiegley2011-08-181-2/+2
|
* Added "top_amount" value expr functionJohn Wiegley2010-12-221-0/+1
|
* Move balance divider right by prepend-widthJohn Wiegley2010-06-261-0/+3
|
* Added "format" value expression functionJohn Wiegley2010-06-241-0/+1
| | | | | | | | | This function evaluates formatting strings, returning a string. For example: format("%(amount)") This is equivalent to "to_string(amount)".
* Scopes can now provide a description of themselvesJohn Wiegley2010-06-241-0/+4
| | | | | | This isn't being used yet, but it likely will to improve the information presented to users if their value expressions fail to compile or evaluate.
* Added report query modifiers: for, since, untilJohn Wiegley2010-06-221-0/+1
| | | | | | | | | Now instead of ledger reg expense -p "this month", you can say: ledger reg expense for this month And as a shorthand for "for until this month", you can just say "until this month" or "since this month".
* Added new --bold-if optionJohn Wiegley2010-06-221-16/+48
|
* bal was sometimes reporting empty accountsJohn Wiegley2010-06-211-0/+2
|
* Fixed register formatting of postings with payeesJohn Wiegley2010-06-181-1/+2
|
* Added new option --inject=KEY[,KEY...]John Wiegley2010-06-181-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If you have a typed metadata key which contains an amount, you can use --inject=KEY to inject a posting with that amount wherever a match occurs. There are two main forms of usage: 2010-06-18 Sample ; Key:: $100 Expenses:Food $100.00 Assets:Checking The command would be: ledger reg --inject=Key In the above, transactional form, a posting under the account "Key" will be injected before the first posting reported for this transaction. It's amount will be $100. This only happens once for the whole transaction. It is also possible to associate the key with a posting: 2010-06-18 Sample Expenses:Food $100.00 ; Key:: $100 Assets:Checking Now the injected posting is generated whenever that particular post is reported.
* Individual postings may each have their own payeeJohn Wiegley2010-06-171-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If a posting has the metadata field "Payee" set to a string, that will be used as the payee name for that posting. This affects the register report, the payees report, and the --by-payee option. This is useful because sometimes I send, say, 4 checks at a time to my bank. So on my bank statement, this is all just one amount: 2010-06-17 Sample Assets:Bank $400.00 Income:Check1 $-100.00 Income:Check2 $-100.00 Income:Check3 $-100.00 Income:Check4 $-100.00 Though it's important that the Assets:Bank posting be a single posting of $400 value, I'd like for income reports to show whom each check came from. Now I can say: 2010-06-17 Sample Assets:Bank $400.00 Income:Check1 $-100.00 ; Payee: Person One Income:Check2 $-100.00 ; Payee: Person Two Income:Check3 $-100.00 ; Payee: Person Three Income:Check4 $-100.00 ; Payee: Person Four When I report this, it appears as: 10-Jun-17 Sample Assets:Bank $400.00 $400.00 Person One Income:Check1 $-100.00 $300.00 Person Two Income:Check2 $-100.00 $200.00 Person Three Income:Check3 $-100.00 $100.00 Person Four Income:Check4 $-100.00 0 This shows that they are all in the same transaction (which is why the date is not repeated), but they have different payees.
* Removed unused --unsorted optionJohn Wiegley2010-06-151-3/+0
|
* Revised how Ledger handles the "current year"John Wiegley2010-06-141-5/+5
| | | | | Now when the Y directive sets the current year for a region, it affects everything, as if the clock really were set back to that year.
* Completely reworked argument passing in expressionsJohn Wiegley2010-06-131-28/+25
|
* Added a new scope_value() inline helper functionJohn Wiegley2010-06-131-1/+1
|
* Improved value expression function 'commodity'John Wiegley2010-06-121-0/+1
| | | | | | Without arguments -- and in a posting -- it is equivalent to "commodity(amount)". Otherwise, it returns the commodity symbol of its argument.
* Untabified all source filesJohn Wiegley2010-06-111-143/+143
|
* Scrub account totals before applying --percentJohn Wiegley2010-06-111-1/+2
|
* 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/)'