summaryrefslogtreecommitdiff
path: root/src/chain.cc
Commit message (Collapse)AuthorAgeFilesLines
...
* Reduced the #include dependency tree to a minimumJohn Wiegley2009-03-041-1/+3
|
* Normalized how account totals are calculatedJohn Wiegley2009-03-031-5/+5
|
* Added an --unround option, to show full precisionJohn Wiegley2009-02-271-0/+4
|
* The -B, -G, -V reports now show rounding amountsJohn Wiegley2009-02-261-1/+4
| | | | | | | | | This way, if the running total is off by a penny or two due to rounding of one or more commodities in the account, the user will see it. This commit also reorganizes the testing code a bit, which I did after adding the ninth test series (ConfirmTests), to validate the new rounding code.
* The Great Renaming, Part IIJohn Wiegley2009-02-231-57/+57
| | | | | The last commit did not contain the majority of changes because of a slight mishap. This contains the real changeset.
* Added --revalued-total option, used by --gainJohn Wiegley2009-02-231-4/+5
| | | | | This option sets the total by which revalued transactions are determined. Only needed if the display total is not appropriate.
* Many fixes to both --market and --exchangeJohn Wiegley2009-02-231-9/+9
|
* Restored the --invert optionJohn Wiegley2009-02-221-4/+0
|
* Added a new --exact optionJohn Wiegley2009-02-211-0/+1
| | | | | | | | | The purpose of this option is that usually when you do a --monthly periodic report, you see dates ranges from the first day of each month, to the last day. With --exact, the first day of each range will be the date of the first transaction found in that range, and likewise with the end of the range. Essentially it "contracts" the reported period dates to reflect the exact begin and end dates.
* Restored --forecast, now also --forecast-whileJohn Wiegley2009-02-211-2/+10
|
* Rewrote the equity command, which is working againJohn Wiegley2009-02-201-1/+3
| | | | | | 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.
* Don't sort or subtotal xacts for account reportsJohn Wiegley2009-02-191-20/+20
|
* Improved the --collapse filterJohn Wiegley2009-02-171-10/+13
| | | | | | | | | | It now takes the --display and --only predicates into account, so that it never appears to be collapsing single transactions. There are cases where there are multiple transactions, but the display or only predicate filters them out, so that if collapse didn't consider this, the user would wonder why a single transaction was being collapsed -- since they'd never see that collapse saw more than two.
* Added new --set-acount and --set-payee optionsJohn Wiegley2009-02-161-6/+26
| | | | | | These fully generalize the previous --payee-as-account and such options, which, for example, is now implemented to be the same as saying, "--set-account payee".
* Added several new reporting optionsJohn Wiegley2009-02-161-0/+6
| | | | | | | | | | | | | | | To help with gathering specific reports: - --payee-as-account copies the entry's payee field to the account, allowing the subtotal report to show unique payees for each period. - --comm-as-account copies the transaction's amount's commodity to the account. - --code-as-account copies the entry's code to the account Also created aliases for some of these options, for conistency's sake: - --commodity-as-payee is now an alias for --comm-as-payee - --commodity-as-account is now an alias for --comm-as-account
* Fixed the --head and --tail optionsJohn Wiegley2009-02-161-3/+6
|
* Made several of the filters more context awareJohn Wiegley2009-02-151-6/+12
| | | | | This resolves certain issues where value expressions were not being looked up within their full context.
* Don't apply all filters for account-wise reportsJohn Wiegley2009-02-151-32/+38
| | | | This creates its own problems; instead, only most are used.
* Improved handling of --empty optionJohn Wiegley2009-02-151-1/+2
| | | | | | For example, in period reports null transactions are only generated for empty periods if --empty is used. Otherwise, the presence of such transactions can get confusing.
* item_predicate now operates on scope_tJohn Wiegley2009-02-151-12/+12
| | | | This means item_predicate is no longer a template.
* chain_xact_handlers now always operators the sameJohn Wiegley2009-02-151-80/+76
| | | | | | Previously, account-wise reports used a subset of the total number of transaction filters, but this could cause confusing results, and made some reports immpossible (such as account-wise monthly averages).
* Have interval_xacts construct temps on a listJohn Wiegley2009-02-141-1/+2
|
* Re-enabled some code, and removed a bunch of deadwood.John Wiegley2009-02-121-11/+15
|
* Sort period transactions by "date", not by "d".John Wiegley2009-02-101-1/+1
|
* Added a new --collapse-if-zero option.John Wiegley2009-02-091-1/+2
|
* Use the report's amount_expr everywhere that computes an xact's amount.John Wiegley2009-02-091-5/+6
|
* Had to step back from a change that was breaking regular reports.John Wiegley2009-02-091-1/+3
|
* Pass amount expression to calc_xacts, to be used for computing the total.John Wiegley2009-02-081-1/+2
|
* Removed --reconcile and --reconcile-date.John Wiegley2009-02-071-14/+0
|
* Removed the nearly unknown --descend and --descend-if options.John Wiegley2009-02-061-32/+4
|
* Restored all the option handlers from 2.6.2, but not the options themselves.John Wiegley2009-02-061-15/+16
|
* Greatly simplified the way option and command handlers are defined.John Wiegley2009-02-051-79/+71
|
* Largely removed all of Ledger's use of global variables, for the REPL's sake.John Wiegley2009-02-041-5/+13
|
* Moved chain_xact_handlers into its own file, chain.h and chain.cc.John Wiegley2009-02-011-0/+225