summaryrefslogtreecommitdiff
path: root/src/output.h
Commit message (Collapse)AuthorAgeFilesLines
* Use #pragma onceAlexis Hildebrandt2023-04-101-4/+1
|
* Update copyright yearAlexis Hildebrandt2023-02-021-1/+1
| | | | [skip ci]
* Update copyright statement for 2022Alexis Hildebrandt2022-07-021-1/+1
|
* Change header guard names to use `INCLUDED_` prefixPhil Newton2022-04-061-3/+3
| | | | Fixes #2049
* [misc] Update year in copyright notice to 2017Alexis Hildebrandt2018-01-271-1/+1
| | | | [ci skip]
* [misc] Update year in copyright notice to 2017Alexis Hildebrandt2017-01-051-1/+1
| | | | [ci skip]
* Fix 1043John Wiegley2016-11-121-0/+2
|
* [misc] Update year in copyright notice to 2016Alexis Hildebrandt2016-01-021-1/+1
| | | | [ci skip]
* Fix clang compile error (FreeBSD 10).Ilya T2015-03-131-4/+6
|
* Bump copyright notice to 2015Alexis Hildebrandt2014-12-271-1/+1
| | | | | | The following script makes it a no-brainer: % NEXT_YEAR=2015; ag -l 'Copyright.*Wiegley' \ | xargs sed -i '' -e "s/\(Copyright.*\)-20[0-9]\{2\}/\1-${NEXT_YEAR}/"
* Bump copyright information to 2014Alexis Hildebrandt2014-02-021-1/+1
|
* Bump copyright information to 2013John Wiegley2013-02-181-1/+1
|
* Merge pull request #132 from enderw88/bug514-sort-accounts-and-commoditiesJohn Wiegley2013-01-291-2/+2
|\ | | | | Fixes bug 514. accounts and commodities output now sorts
| * Fixes bug 514. accounts and commodities output now sortsCraig Earls2013-01-291-2/+2
| | | | | | | | updated tests included.
* | Addes tags command and --values optionCraig Earls2013-01-291-0/+27
|/ | | | | Tags command reports all metadat tags in use. With the values option it reports tags and their values.
* Revert "Bug551 fixed, commodities and accounts now sort"John Wiegley2013-01-161-2/+2
| | | | This reverts commit 67a598f6ff3b9b19b08af108c8bfe26064728457.
* Bug551 fixed, commodities and accounts now sortCraig Earls2013-01-071-2/+2
| | | | | | Added two compare structs for std::map to use. I tried to override the < operator got a clean compile but map wasn't picking it up, I couldn't figure out why so I took the less elegant route.
* Increased file copyrights to 2012John Wiegley2012-02-291-1/+1
|
* Untabified all source filesJohn Wiegley2010-06-111-7/+7
|
* New: --group-by=EXPR and --group-title-format=FMTJohn Wiegley2010-05-301-0/+16
| | | | | | | | | | | | | | | | | | | | | 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.
* Added new required item_handler_t::clear() methodJohn Wiegley2010-05-301-0/+29
|
* Added new option --prepend-widthJohn Wiegley2010-05-221-9/+13
| | | | | | | | 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
* Option --count sums payees, account, commoditiesJohn Wiegley2010-05-221-6/+6
|
* Added new commands: acounts, payees, commoditiesJohn Wiegley2010-05-221-0/+63
| | | | | | | | | | | | | These three reports simply dump an unordered list (with the exception of payees) shows all accounts, payees, and commodities represented in a given report. This can be used to easily generate per-entity report, for example: ledger payees | \ while read payee; do \ echo ; echo $payee ; \ ledger reg payee "$payee" ; \ done
* Rewrite the "print" command as a custom functionJohn Wiegley2010-03-081-2/+0
| | | | | 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 --prepend-format optionJohn Wiegley2009-11-111-2/+6
| | | | | | | | 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)'
* Redesigned the expr_t, predicate_t, query_t classesJohn Wiegley2009-11-091-5/+5
|
* Removed a bunch of empty commentsJohn Wiegley2009-11-081-14/+0
|
* Fixed sorting in bal reports when --flat is usedJohn Wiegley2009-10-261-1/+1
| | | | | | | 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.
* If 2+ child accounts are shown, show the parentJohn Wiegley2009-03-151-2/+2
| | | | | Also, also show a final balance if there are multiple accounts displayed, even if that final balance is zero.
* Rewrote the balance report again, to fix --depthJohn Wiegley2009-03-081-1/+4
|
* Revised the ways statistics are computedJohn Wiegley2009-03-061-46/+0
| | | | | | | 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.
* Reduced the #include dependency tree to a minimumJohn Wiegley2009-03-041-4/+8
|
* Separator in "balance" now part of format stringJohn Wiegley2009-02-271-14/+5
|
* The Great Renaming, Part IIJohn Wiegley2009-02-231-17/+17
| | | | | The last commit did not contain the majority of changes because of a slight mishap. This contains the real changeset.
* Added a new --raw option, for use with printJohn Wiegley2009-02-211-1/+3
|
* Removed an unused class: format_entriesJohn Wiegley2009-02-211-28/+0
|
* Added --no-total optionJohn Wiegley2009-02-201-5/+2
| | | | This simply omits the final total in the balance report, nothing more.
* Rewrote the equity command, which is working againJohn Wiegley2009-02-201-23/+0
| | | | | | 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.
* Allow for sorting of the balance reportJohn Wiegley2009-02-191-4/+6
| | | | | | Sorting is repeated at each level of the hierarchy, unless --flat was specified in which case it applies to the entire applicable accounts list.
* Added --flat option, to flatten the balance reportJohn Wiegley2009-02-171-3/+6
|
* Only display a final balance total if necessaryJohn Wiegley2009-02-171-9/+6
| | | | | In the case where only one top-level account is being reported, there is no reason to duplicate the total balance shown.
* Rewrote how the balance command displays accountsJohn Wiegley2009-02-171-6/+9
| | | | | | | | The previous method bent over backwards to try and avoid multiple passes through the account tree, but the result was a horribly complicated mess that never ceased to dredge up obscure bugs. The new scheme is a very, very simple two-pass algorithm, with multiple subpasses during the second pass for refining the output based on the report options.
* Moved format_accounts::should_display out of lineJohn Wiegley2009-02-161-7/+1
|
* Simplified the stats commandJohn Wiegley2009-02-161-1/+0
|
* Fleshed out the "stats" commandJohn Wiegley2009-02-161-6/+18
|
* The "xact" variable now returns null for accountsJohn Wiegley2009-02-151-1/+3
|
* item_predicate now operates on scope_tJohn Wiegley2009-02-151-4/+4
| | | | This means item_predicate is no longer a template.
* Re-enabled some code, and removed a bunch of deadwood.John Wiegley2009-02-121-5/+0
|