summaryrefslogtreecommitdiff
path: root/src/account.h
Commit message (Collapse)AuthorAgeFilesLines
* account_t::add_post resets family_details.gatheredJohn Wiegley2010-06-131-3/+1
|
* Untabified all source filesJohn Wiegley2010-06-111-45/+45
|
* Updated copyrights to 2003-2010John Wiegley2010-03-051-1/+1
|
* Added an ACCOUNT_GENERATED flagJohn Wiegley2009-11-181-3/+4
|
* Added has_xdata() methods for journal_t and xact_tJohn Wiegley2009-11-121-0/+1
|
* Removed a bunch of empty commentsJohn Wiegley2009-11-081-9/+0
|
* Moved xdata clearing code into each type properJohn Wiegley2009-11-051-3/+1
|
* Transactions, etc., are now accessed by iteratorsJohn Wiegley2009-11-051-0/+20
|
* Segregated symbols into 5 separate namespacesJohn Wiegley2009-11-041-1/+2
| | | | | | | | | | | | | | | | | | | | | The different namespaces are: Function Value expression functions, which receive a "context" Option Command-line options Precommand Commands which are invoked before reading the journal Command Commands which are invoked after reading the journal Directive Directives that occur at column 0 in a data file This greatly eases the ability for Python uses to add intercept hooks to change how the basic Ledger module functions. An example of what should be possible soon: import ledger def my_foo_handler(value): print "--foo received:", value ledger.add_handler(ledger.Option, "foo=", my_foo_handler)
* Whitespace fixJohn Wiegley2009-11-041-1/+1
|
* Whitespace fixJohn Wiegley2009-11-021-1/+0
|
* Added "reported posts" into account xdataJohn Wiegley2009-11-021-2/+4
| | | | | | | | | This is necessary because sometimes, a post from one account will get reported as though it were in another account (this happens with --budget, to show child account postings within their parent account). In that case, the account needs to remember which postings have been reported as being within it, so that it can add these amounts to its own total in the balance report.
* Removed unnecessary forward declarationJohn Wiegley2009-10-311-1/+0
|
* Added serialization methods for most typeJohn Wiegley2009-10-301-0/+20
| | | | | This allows journal_t objects to be completed serialized to disk and deserialized.
* Renamed two methods, for consistency's sakeJohn Wiegley2009-10-271-2/+2
|
* Redid the way temporaries are handled in filteringJohn Wiegley2009-10-271-17/+18
|
* Removed two invalid commentsJohn Wiegley2009-10-271-2/+0
|
* Removed some dead codeJohn Wiegley2009-06-271-5/+2
|
* Rewrote the balance report again, to fix --depthJohn Wiegley2009-03-081-1/+2
|
* Revised the ways statistics are computedJohn Wiegley2009-03-061-32/+17
| | | | | | | 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.
* Changed the way that account balances are computedJohn Wiegley2009-03-061-9/+70
|
* Don't compute running total for balance reportsJohn Wiegley2009-03-051-3/+4
|
* Reduced the #include dependency tree to a minimumJohn Wiegley2009-03-041-1/+0
|
* Gather account details in a details_t structureJohn Wiegley2009-03-031-12/+17
|
* Normalized how account totals are calculatedJohn Wiegley2009-03-031-2/+1
|
* Corrected warnings g++-4.3.3 was complaining aboutJohn Wiegley2009-02-281-1/+1
|
* The Great Renaming, Part IIJohn Wiegley2009-02-231-3/+3
| | | | | The last commit did not contain the majority of changes because of a slight mishap. This contains the real changeset.
* Added a --strict session optionJohn Wiegley2009-02-191-1/+4
| | | | | | | When enabled, if any accounts or commodities are seen in an uncleared transaction, which were not seen previously in a cleared or pending transaction or a textual directive dealing with accounts or commodities, a warning is generated about the unknown item.
* Added --flat option, to flatten the balance reportJohn Wiegley2009-02-171-1/+1
|
* Only display a final balance total if necessaryJohn Wiegley2009-02-171-6/+6
| | | | | In the case where only one top-level account is being reported, there is no reason to duplicate the total balance shown.
* Rewrote how the balance command displays accountsJohn Wiegley2009-02-171-5/+8
| | | | | | | | The previous method bent over backwards to try and avoid multiple passes through the account tree, but the result was a horribly complicated mess that never ceased to dredge up obscure bugs. The new scheme is a very, very simple two-pass algorithm, with multiple subpasses during the second pass for refining the output based on the report options.
* Removed an unused extended account xdata flagJohn Wiegley2009-02-161-5/+4
|
* Sorting expr now uses "-" to indicate descendingJohn Wiegley2009-02-121-3/+4
| | | | | For example: -S payee,-date sorts 1) ascending by payee, then 2) descending by date.
* Use the report's amount_expr everywhere that computes an xact's amount.John Wiegley2009-02-091-1/+1
|
* Moved get_partial_name from format.cc into account_t, where it belongs.John Wiegley2009-02-081-0/+5
|
* Removed unnused account_t::ident.John Wiegley2009-02-071-7/+2
|
* Largely removed all of Ledger's use of global variables, for the REPL's sake.John Wiegley2009-02-041-1/+2
|
* Removed the global references to session->report.John Wiegley2009-02-031-1/+1
|
* Changed many uses of "unsigned long" to std::size_t.John Wiegley2009-02-011-1/+1
|
* Added documentation stubs for all include files and classes.John Wiegley2009-01-311-0/+19
|
* Stopped using the generic "unsigned int" in favor of more specific types.John Wiegley2009-01-291-7/+7
|
* Increased copyright range to include 2009.John Wiegley2009-01-201-1/+1
|
* Factored common parts of entry_t and xact_t into new item_tJohn Wiegley2008-09-191-5/+2
|
* Added a forward declaration for session_t.John Wiegley2008-08-151-0/+1
|
* Fixed a memory leak that would show up if --verify --verbose was running andJohn Wiegley2008-08-101-2/+14
| | | | an error or exception occurred.
* Basic balance reports are working again!John Wiegley2008-08-101-2/+5
|
* Moved around most of the files so that source code is in src/, documentationJohn Wiegley2008-08-051-0/+155
is in doc/, etc.