summaryrefslogtreecommitdiff
path: root/src/output.cc
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright yearAlexis Hildebrandt2023-02-021-1/+1
| | | | [skip ci]
* Update copyright statement for 2022Alexis Hildebrandt2022-07-021-1/+1
|
* Fix warning about uninitialized variable prepend_widthTim Landscheidt2019-01-141-3/+4
|
* Merge pull request #519 from mbudde/accounts-prepend-formatJohn Wiegley2018-01-271-0/+15
|\ | | | | Add support for --prepend-format in accounts command
| * Add support for --prepend-format in accounts commandMichael Budde2018-01-251-0/+15
| | | | | | | | | | Add support for the `--prepend-format` and `--prepend-width` options in the `accounts` command.
* | [misc] Update year in copyright notice to 2017Alexis Hildebrandt2018-01-271-1/+1
|/ | | | [ci skip]
* Remove compiler warning about missing bracesØyvind A. Holm2017-04-171-12/+13
| | | | | | | | | Remove the following warning from gcc 5.4.0: "[...]/src/output.cc:335:6: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]". Instead of adding braces around the whole function body, return early if item.metadata is 0.
* [misc] Update year in copyright notice to 2017Alexis Hildebrandt2017-01-051-1/+1
| | | | [ci skip]
* Fix 1043John Wiegley2016-11-121-10/+16
|
* [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-3/+3
|
* 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}/"
* Cosmetic change - format code consistentlyMartin Michlmayr2014-05-181-3/+3
| | | | | Add a space between if and the opening bracket, between a closing round bracket and the following opening curly bracket, etc.
* Bump copyright information to 2014Alexis Hildebrandt2014-02-021-1/+1
|
* Bump copyright information to 2013John Wiegley2013-02-181-1/+1
|
* Addes tags command and --values optionCraig Earls2013-01-291-0/+28
| | | | | Tags command reports all metadat tags in use. With the values option it reports tags and their values.
* Converted the Ledger build system to use CMakeJohn Wiegley2012-05-201-1/+1
|
* Always call TRACE_CTOR at the end of constructorsJohn Wiegley2012-03-201-4/+4
|
* Increased file copyrights to 2012John Wiegley2012-02-291-1/+1
|
* Fixed many Clang type conversion warnings with static_castJohn Wiegley2012-02-171-13/+18
|
* Fixes for variable shadowing (19/28)John Wiegley2012-02-171-3/+3
|
* Value scopes now take a parent scope for chainingJohn Wiegley2010-06-241-14/+6
|
* bal was sometimes reporting empty accountsJohn Wiegley2010-06-211-1/+2
|
* Individual postings may each have their own payeeJohn Wiegley2010-06-171-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Untabified all source filesJohn Wiegley2010-06-111-30/+30
|
* Minor optimization of how non --empty is handledJohn Wiegley2010-06-071-0/+2
|
* New: --group-by=EXPR and --group-title-format=FMTJohn Wiegley2010-05-301-9/+46
| | | | | | | | | | | | | | | | | | | | | 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 option --prepend-widthJohn Wiegley2010-05-221-7/+16
| | | | | | | | 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-12/+31
|
* Added new commands: acounts, payees, commoditiesJohn Wiegley2010-05-221-0/+66
| | | | | | | | | | | | | 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-21/+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
|
* Fixed account display bug in the balance reportJohn Wiegley2010-01-211-5/+4
|
* Added a --prepend-format optionJohn Wiegley2009-11-111-5/+27
| | | | | | | | 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 format_t classJohn Wiegley2009-11-091-20/+23
|
* Redesigned the expr_t, predicate_t, query_t classesJohn Wiegley2009-11-091-1/+1
|
* 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.
* Fixed a display issue with the balance reportJohn Wiegley2009-10-271-7/+7
|
* Redid the way temporaries are handled in filteringJohn Wiegley2009-10-271-3/+3
|
* Fixed sorting in bal reports when --flat is usedJohn Wiegley2009-10-261-4/+5
| | | | | | | 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.
* In the balance report, don't output any account twiceJohn Wiegley2009-10-261-1/+2
|
* Removed some dead codeJohn Wiegley2009-06-271-1/+1
|
* Restored --percent option, added baseline testJohn Wiegley2009-06-211-1/+2
|
* Refinement to display of account balancesJohn Wiegley2009-06-151-1/+3
| | | | Fixes 5A03CFC3-1A76-4F93-A1FE-555F98438C5A
* If 2+ child accounts are shown, show the parentJohn Wiegley2009-03-151-12/+17
| | | | | Also, also show a final balance if there are multiple accounts displayed, even if that final balance is zero.
* If a balance report is multi-lined, print a totalJohn Wiegley2009-03-151-10/+1
|
* Moved a variable initializationJohn Wiegley2009-03-111-2/+2
|
* Enabled use of pre-compiled headers by defaultJohn Wiegley2009-03-101-0/+2
|
* Rewrote the balance report again, to fix --depthJohn Wiegley2009-03-081-51/+44
|
* Revised the ways statistics are computedJohn Wiegley2009-03-061-98/+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.