summaryrefslogtreecommitdiff
path: root/src/report.h
Commit message (Collapse)AuthorAgeFilesLines
* Use #cmakedefine01 for system capability checksAlexis Hildebrandt2023-04-151-1/+1
| | | | and reply #ifdev HAVE_ with #if HAVE_
* Use #pragma onceAlexis Hildebrandt2023-04-101-4/+1
|
* Update copyright yearAlexis Hildebrandt2023-02-021-1/+1
| | | | [skip ci]
* If the amount-width has not been set, use the old default of 20John Wiegley2023-01-271-3/+3
|
* Use amount_width for balance reportVladimir Parfinenko2023-01-271-3/+3
|
* Rename quoted_rfc4180 to quoted_rfc, to avoid parser quirkDonald Lam2023-01-251-1/+1
| | | | | | | Ledger's expression parser considers quoted_rfc4180 to be an amount (quantity 4180 of commodity "quoted_rfc"). Fixes #2007.
* 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
* Revert "Use amount_width for balance report"John Wiegley2022-02-031-3/+3
| | | | This reverts commit 7baa0efd71896711e563feb957926433f529d892.
* Use amount_width for balance reportVladimir Parfinenko2022-02-031-3/+3
|
* Revert "Revert "Revert "Change --invert to invert displayed amounts and ↵John Wiegley2022-02-031-2/+1
| | | | | | totals, not amounts""" This reverts commit c99a4b03320242d3d5a6d64f73f8581fe5ea2306.
* Revert "Revert "Change --invert to invert displayed amounts and totals, not ↵John Wiegley2022-02-031-1/+2
| | | | | | amounts"" This reverts commit 1600ee1f64f659b151c1c873d478baa1bdab89f2.
* Use PAGER when environment variable is setMartin Michlmayr2020-06-181-10/+15
| | | | | | | The code looked for "less" if $PAGER is not set, but it didn't actually use $PAGER when it it defined. Fixes #1674
* Revert "Change --invert to invert displayed amounts and totals, not amounts"Martin Michlmayr2020-05-181-2/+1
| | | | | | This reverts commit 9ad0dcc85a3ec59a1dd23f36964d083cf59bd7a9. Fixes #1895
* Add two (for the moment undocumented) functions:John Wiegley2020-04-231-0/+2
| | | | | | | | | | | | | | | | | | | | - commodity_price(NAME, DATE) - set_commodity_price(NAME, DATE) Using these two I am able to compute rate of return over a period of transactions, taking additional deposits and withdrawals into account, using the following automated transactions: P 2019-12-31 12:00:00 ROI $1.00 2020-01-01 Start of record (ROI) 0 ROI = expr date >= [2020/01/01] && account =~ /Broker:Cash$/ and any(account =~ /Assets:Checking/) (ROI) (1 ROI * (amount / commodity_price(1 ROI, date))) = expr date >= [2020/01/01] && account =~ /:Capital:/ (ROI) (set_commodity_price(1 ROI, date, ((commodity_price(1 ROI, date) * account("ROI").amount) - amount) / account("ROI").amount) || 0 ROI)
* Add --averaged-lot-pricesJohn Wiegley2019-12-061-0/+9
| | | | | This joins together lots of the same underlying, averaging the reported price and using the date of the oldest lot.
* Change --invert to invert displayed amounts and totals, not amountsJohn Wiegley2019-07-051-1/+2
|
* Add (currently undocumented) function 'clear_commodity'John Wiegley2018-02-161-0/+1
|
* [misc] Update year in copyright notice to 2017Alexis Hildebrandt2018-01-271-1/+1
| | | | [ci skip]
* Use amount_width variable for budget reportPaulo Flabiano Smorigo2018-01-031-5/+5
| | | | | Instead of using a "magic" value (12), use the proper variable to set the width.
* Be a bit more defensive when calculating the budgetJohn Wiegley2017-12-301-2/+2
|
* [misc] Update year in copyright notice to 2017Alexis Hildebrandt2017-01-051-1/+1
| | | | [ci skip]
* Add new reporting function quoted_rfc4180John Wiegley2016-11-121-0/+1
|
* Fix build under Cygwin.Ivan Vanyushkin2016-09-291-1/+1
|
* Fix build under msys32; add Appveyor continuous buildEvan Mallory2016-09-171-1/+2
| | | | | | | | | | | | * Appveyor is a continuous integration platform for Windows that is free for open source projects. See latest test build here: https://ci.appveyor.com/project/Evan/ledger/build/artifacts * Changed WIN32 to _WIN32 because this article http://nadeausoftware.com/articles/2012/01/c_c_tip_how_use_compiler_predefined_macros_detect_operating_system claims that it is defined by the greatest number of compilers. * Modified HAVE_ISATTY and other system defines so that system.hh compiles when cmake fails to find the relevant function. * Add missing include in test/unit/t_value.cc Almost all tests fail when you run them on msys32. I will address that in a future PR.
* Make -A to imply -EJohn Wiegley2016-01-091-0/+1
|
* [misc] Update year in copyright notice to 2016Alexis Hildebrandt2016-01-021-1/+1
| | | | [ci skip]
* Add a --no-revalued optionJohn Wiegley2015-05-051-0/+4
|
* Fix alignment of cleared-format with 4 spaces as separator.thdox2015-02-231-1/+1
|
* 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}/"
* fix rare bug in balance report output if the budgeted amount happens to be zero.Craig Earls2014-08-241-2/+2
| | | | See emails in group from John Rakestraw circa November 2011
* Add the --no-pager optionJohn Wiegley2014-04-271-0/+1
|
* Bump copyright information to 2014Alexis Hildebrandt2014-02-021-1/+1
|
* Commodity column in default CSV format should match the displayed amountSteve Purcell2014-01-061-1/+1
| | | | | | | | If one uses --exchange to force CSV display amounts into a particular currency, then the commodity output column should match that currency. Without this patch, the commodity column contains the original commodity, not the commodity for the exported amount.
* Bump copyright information to 2013John Wiegley2013-02-181-1/+1
|
* Bug 634 Added roundto function, optimized floor and ceilingCraig Earls2013-01-301-0/+1
| | | | Fixes Bug634 by adding roundto(amount, places).
* Addes tags command and --values optionCraig Earls2013-01-291-0/+2
| | | | | Tags command reports all metadat tags in use. With the values option it reports tags and their values.
* Bug 634 and 488, Corrected behavior of floor, and added ceilingCraig Earls2012-10-251-0/+1
| | | | This is only a partial fix for 634, since rounding is not fixed.
* Fix compilation warning: be sure we call the base class copy constructor.Hyrum Wright2012-08-141-1/+1
|
* Converted the Ledger build system to use CMakeJohn Wiegley2012-05-201-2/+2
|
* Switch to using Boost.FormatJohn Wiegley2012-05-141-6/+6
|
* Added a * for cleared entries in the time reportJohn Wiegley2012-05-101-4/+7
|
* Allow --invert to work with --monthlyJohn Wiegley2012-04-061-1/+1
| | | | Fixes #770
* Added --verify-memory and missing TRACE_[CD]TOR callsJohn Wiegley2012-03-181-2/+21
|
* Always close the last report output streamJohn Wiegley2012-03-161-0/+4
| | | | Should fix #701
* Change abbrev_len to int(abbrev_len)John Wiegley2012-03-131-3/+2
|
* Added --time-report optionJohn Wiegley2012-03-131-0/+20
| | | | | | | | | | | | | This is a rather basic option at the moment which only affects the balance report. I use it as follows, for entering contractor hours into a project planning application, where $1 is the contractor's timelog file, and $2 is the date after which new entries appear in the file: ledger -f $1 balance \ --account=payee \ --time-report \ -d "latest > [$2]" \ --datetime-format='%m/%d/%y %I:%M %p'
* Added format_datetime valexpr functionJohn Wiegley2012-03-131-0/+1
|
* Added --immediate optionJohn Wiegley2012-03-101-0/+2
|
* Added --dc option, for debit/credit style reportsJohn Wiegley2012-03-101-5/+71
|