summaryrefslogtreecommitdiff
path: root/src/report.cc
Commit message (Collapse)AuthorAgeFilesLines
* Add new --align-intervals option.Ian20202024-08-061-0/+1
|
* Use #cmakedefine01 for system capability checksAlexis Hildebrandt2023-04-151-3/+3
| | | | and reply #ifdev HAVE_ with #if HAVE_
* 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-0/+7
|
* Rename quoted_rfc4180 to quoted_rfc, to avoid parser quirkDonald Lam2023-01-251-3/+3
| | | | | | | 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
|
* Add two (for the moment undocumented) functions:John Wiegley2020-04-231-0/+23
| | | | | | | | | | | | | | | | | | | | - 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/+11
| | | | | This joins together lots of the same underlying, averaging the reported price and using the date of the oldest lot.
* Remove the 'org' command, which was always a hack to begin withJohn Wiegley2019-03-151-6/+0
|
* Add (currently undocumented) function 'clear_commodity'John Wiegley2018-02-161-0/+9
|
* Merge pull request #521 from mbudde/fix-trimAlexis Hildebrandt2018-01-271-7/+4
|\ | | | | Fix handling of edge cases in trim function
| * Fix handling of edge cases in trim functionMichael Budde2018-01-251-7/+4
| | | | | | | | Fixes #520
* | [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]
* Item sorting should have access to the report scopeJohn Wiegley2017-01-041-4/+6
|
* Add new reporting function quoted_rfc4180John Wiegley2016-11-121-0/+19
|
* --force-color does not require anymore --color.thdox2016-10-271-0/+3
| | | | This was reported as Bug #1109
* Fix build under msys32; add Appveyor continuous buildEvan Mallory2016-09-171-3/+3
| | | | | | | | | | | | * 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.
* [misc] Update year in copyright notice to 2016Alexis Hildebrandt2016-01-021-1/+1
| | | | [ci skip]
* Add a --no-revalued optionJohn Wiegley2015-05-051-0/+1
|
* [fix] Make trim function trim trailing whitespaceAlexis Hildebrandt2015-01-201-2/+2
| | | | | | std::isspace(*e) returns false for the end of c-string null-byte. Bugzilla: 1106
* 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}/"
* make --columns default to terminal width, as returned by ioctl()Stefano Zacchiroli2014-10-131-0/+7
| | | | | | | | | | | If set, the COLUMNS environment variable will take precedence over terminal width. However, please note that COLUMNS is usually *not* exported by shells to child processes, so in most cases COLUMNS will be undefined for ledger---hence the motivation for this change. Terminal width is queried using ioctl() on stdin. For the sake of portability the querying is done only on platform where ioctl() is detected as supported at compile-time.
* Recognize --cleared-format optionMartin Michlmayr2014-05-301-0/+1
| | | | Bug fix for #747
* Recognize the --no-pager optionMartin Michlmayr2014-05-121-0/+1
| | | | Thanks to Johann Klähn.
* Bump copyright information to 2014Alexis Hildebrandt2014-02-021-1/+1
|
* fix ledger xml output, remove ledger json commandJohann Klähn2013-03-081-5/+0
| | | | | | | | | | | | As the format used by property trees to represent valid JSON and that for valid XML is too different and given that there are more requests for valid XML output I decided to pursue a quick fix and remove the json command in favor of a working xml command. See bug #782, #909, recent discussion on mailing list. JSON support is postponed until I or someone else finds time to work on this or the python bindings are more stable.
* Bump copyright information to 2013John Wiegley2013-02-181-1/+1
|
* Removed an unnecessary if. Fixes #140John Wiegley2013-01-311-2/+1
|
* Bug 634 Added roundto function, optimized floor and ceilingCraig Earls2013-01-301-0/+8
| | | | Fixes Bug634 by adding roundto(amount, places).
* Fixes regression error introduced by tags command patchCraig Earls2013-01-291-5/+10
| | | | Not sure how the changes to the options got into the repot.cc file, but this takes the changes out.
* Addes tags command and --values optionCraig Earls2013-01-291-10/+10
| | | | | Tags command reports all metadat tags in use. With the values option it reports tags and their values.
* fix bug 748: option aliases not recognizedJohann Klähn2013-01-151-4/+11
|
* Added missing break; statement in report.ccCraig Earls2012-10-261-0/+1
|
* Added "draft" and "lisp" command synonymsCraig Earls2012-10-261-2/+8
|
* Bug 634 and 488, Corrected behavior of floor, and added ceilingCraig Earls2012-10-251-0/+7
| | | | This is only a partial fix for 634, since rounding is not fixed.
* Converted the Ledger build system to use CMakeJohn Wiegley2012-05-201-2/+2
|
* Added a "json" report commandJohn Wiegley2012-05-181-3/+9
|
* Switched to Boost.PropertyTree for XML generationJohn Wiegley2012-05-181-2/+2
|
* Switch to using Boost.FormatJohn Wiegley2012-05-141-6/+6
|
* Make --detail a synonym for --rich-dataJohn Wiegley2012-04-131-1/+1
|
* Make pricesdb an alias for pricedb for backwards compatibility with ledger 2Martin Michlmayr2012-03-251-1/+1
| | | | | | | | ledger 2.2 introduced the pricesdb command. This was renamed to pricedb in ledger 3. Allow pricesdb as an alternative to pricedb to provide backwards compatibility. Fixes bug #728
* More improvements to nail_down; fixes #715John Wiegley2012-03-191-2/+4
|
* Added --verify-memory and missing TRACE_[CD]TOR callsJohn Wiegley2012-03-181-1/+6
|
* Make --days-of-week an alias for --dowJohn Wiegley2012-03-171-1/+1
|
* Add experimental support for select queriesJohn Wiegley2012-03-131-0/+3
|
* Added --time-report optionJohn Wiegley2012-03-131-0/+1
| | | | | | | | | | | | | 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/+11
|
* Resolved a huge performance issue with 'pricedb'John Wiegley2012-03-121-2/+14
|
* Quieted several compiler warnings from ClangJohn Wiegley2012-03-111-1/+3
|