summaryrefslogtreecommitdiff
path: root/src/chain.cc
Commit message (Collapse)AuthorAgeFilesLines
* Add new --align-intervals option.Ian20202024-08-061-1/+2
|
* Update copyright yearAlexis Hildebrandt2023-02-021-1/+1
| | | | [skip ci]
* Update copyright statement for 2022Alexis Hildebrandt2022-07-021-1/+1
|
* Fix unrounding for equityOleg Bulatov2022-05-061-1/+1
|
* Treat --depth like --collapse in registerRahix2020-07-211-1/+1
| | | | | | | | | | Currently, collapsing is only done when both --depth and --collapse are present. This is very unintuitive and I have even stumbled over this myself while implenting the feature. Change --depth to behave just like --collapse in all cases (except that --depth has a parameter associated. --collapse defaults to 0 to retain its old behavior).
* collapse_posts: Use --depth as the collapse_depthRahix2020-07-211-2/+8
| | | | Use the value from --depth as the collapse_depth for --collapse.
* Fix typos in commentsMartin Michlmayr2020-05-211-1/+1
|
* [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-2/+2
|
* [misc] Update year in copyright notice to 2016Alexis Hildebrandt2016-01-021-1/+1
| | | | [ci skip]
* 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
|
* Allow the equity command to strip annotationsJohn Wiegley2012-03-191-1/+1
|
* Reworked the way that options are handledJohn Wiegley2012-03-091-6/+5
|
* Many options now have additive effectJohn Wiegley2012-03-071-0/+4
| | | | | | | | | 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 an unnecessary assertJohn Wiegley2012-03-071-1/+0
|
* Increased file copyrights to 2012John Wiegley2012-02-291-1/+1
|
* Rewrite the way interval reports are generatedJohn Wiegley2012-02-281-3/+1
|
* Corrected a typoJohn Wiegley2011-07-031-3/+3
|
* Rename dow_posts to day_of_week_posts, to be clearerJohn Wiegley2010-06-201-3/+3
|
* Subsantial fixes and improvements to budgetingJohn Wiegley2010-06-191-2/+2
| | | | | | | | | 1. A bounded budget "from DATE to DATE" will now generate entries throughout that entire range, if it is triggered. 2. An unbounded budget begins, as before, in the timeframe of the reported posting which triggered it, but now continues until the present date.
* Added new option --inject=KEY[,KEY...]John Wiegley2010-06-181-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Removed unused --unsorted optionJohn Wiegley2010-06-151-6/+0
|
* Untabified all source filesJohn Wiegley2010-06-111-59/+59
|
* Minor optimization of how non --empty is handledJohn Wiegley2010-06-071-6/+6
|
* Reworked the way that <Rounding> entries are shownJohn Wiegley2010-06-061-13/+21
| | | | Fixes #188 / 53BCED29-F3B9-4E02-9A35-6C739ABB9662
* New: --group-by=EXPR and --group-title-format=FMTJohn Wiegley2010-05-301-59/+67
| | | | | | | | | | | | | | | | | | | | | 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-1/+1
|
* Added --rounding option, which is off by defaultJohn Wiegley2010-05-231-1/+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.
* The --pivot=X option now only matches the tag "X"John Wiegley2010-03-171-1/+1
|
* Do not implicitly sort register outputJohn Wiegley2010-03-171-0/+2
| | | | The switches the default back to the same as 2.x, which is --unsorted.
* Updated copyrights to 2003-2010John Wiegley2010-03-051-1/+1
|
* Added a --pivot=TAG optionJohn Wiegley2010-02-021-1/+11
| | | | | | This is equivalent to the following: --account='"TAG:" + tag(/TAG/)'
* Added an --unrealized option, for use with bal -VJohn Wiegley2009-11-191-7/+12
| | | | | | When this option is on, then in balance report which show market values, any gains or losses in value will be balanced into a pair of accounts called Equity:Unrealized Gains and Equity:Unrealized Losses.
* Don't auto-sort transactions for the balance reportJohn Wiegley2009-11-191-4/+0
|
* Changed several pointers to references in filtersJohn Wiegley2009-11-191-8/+1
|
* Renamed bool controlling running total calculationsJohn Wiegley2009-11-181-1/+1
| | | | | | It used to be "account_wise", since it only happens for non-account-wise reports. Now it's called just "calc_running_total", so anyone can request it.
* Changed only_preliminaries to for_accounts_reportJohn Wiegley2009-11-181-4/+4
|
* Added --date, similar to --account and --payeeJohn Wiegley2009-11-111-0/+5
| | | | | | | This lets you do things like store a date as the value of a tag, then run: ledger --date='has_tag("Foo") ? to_date(tag("Foo")) : date' reg
* Redesigned the expr_t, predicate_t, query_t classesJohn Wiegley2009-11-091-16/+16
|
* Renamed --set-reported-account to just --accountJohn Wiegley2009-11-061-35/+4
| | | | | | | This fits better with the --amount and --total options, which both change the amount and total used for calculation. Same with --account: it happens after filtering, but before calculation so that balance reports look as you'd expect.
* New: --set-reported-account, --set-reported-payeeJohn Wiegley2009-11-011-0/+11
|
* Added a --forecast-years optionJohn Wiegley2009-10-311-1/+5
| | | | | This sets how many years of forecasting Ledger will do before it terminates the attempt.
* Moved ownership of master account into journal_tJohn Wiegley2009-10-301-7/+7
| | | | The journal_t now completely represents the data part of a session.
* Sort by default unless --unsorted is selectedJohn Wiegley2009-10-281-0/+8
|
* Fixed many compiler warnings from g++ 4.4John Wiegley2009-10-251-4/+4
|
* Enabled use of pre-compiled headers by defaultJohn Wiegley2009-03-101-0/+2
|
* Implemented --unround using value expressionsJohn Wiegley2009-03-061-5/+3
|