summaryrefslogtreecommitdiff
path: root/src/account.h
Commit message (Collapse)AuthorAgeFilesLines
* boost: Fix compilation warningsAlexis Hildebrandt2023-04-251-0/+2
| | | | Closes #2227
* Refactor basic_flags_t to ledger::flags::basic_tAlexis Hildebrandt2023-04-121-1/+1
|
* Use #pragma onceAlexis Hildebrandt2023-04-101-4/+1
|
* Update copyright yearAlexis Hildebrandt2023-02-021-1/+1
| | | | [skip ci]
* 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
* fix: Fix #543 by tracking an account's real balanceDaraul2020-04-051-1/+2
| | | | | | | | | | | | | | Without these changes, whether an account's balance is virtual or real is not considered when asserting it's balance. This lead to situations where the user must consider their virtual postings when attemping to assert the real balance of the account. See test/regress/543_a.test for that testcase, taken from the original issue. This commit also includes other, fringe, situations that I noticed while working on the fix. It essentially just adds a separate attribute to the account class(?) that hold's the account's "real" balance, which is only updated when the user attempts an assertion on a real account. The virtual account's balance is updated the way it always was.
* [misc] Update year in copyright notice to 2017Alexis Hildebrandt2018-01-271-1/+1
| | | | [ci skip]
* Initialize field in constructorMichael Budde2018-01-011-2/+5
| | | | | Should fix problem with garbage being read from this field causing some test failures on my machine.
* [misc] Update year in copyright notice to 2017Alexis Hildebrandt2017-01-051-1/+1
| | | | [ci skip]
* [misc] Update year in copyright notice to 2016Alexis Hildebrandt2016-01-021-1/+1
| | | | [ci skip]
* Convert boost::optional objects to bool explicitly.Jonathan Wakely2015-07-271-5/+1
| | | | Fixes #417.
* Revert "boost::none_t no longer convertible from literal 0 in 1.58"John Wiegley2015-05-171-1/+5
| | | | This reverts commit 48aec0f093ff6494a3e4f7cd5166cb4a27c16814.
* boost::none_t no longer convertible from literal 0 in 1.58Johann Klähn2015-05-101-5/+1
| | | | Instead we use boost::none, which has been documented since boost 1.34.0.
* [ledger] Remove --cache optionAlexis Hildebrandt2015-02-181-20/+0
| | | | and all boost serialisation related code.
* 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}/"
* #if guards for boost 1.56 compatibilityJoe Gallo2014-08-281-0/+4
|
* Revert "fix "no viable conversion from ... to 'bool'""John Wiegley2014-08-271-1/+1
| | | | This reverts commit df9ae3ab9b37fde803f26c6bc4eaadfd67fc1d07.
* fix "no viable conversion from ... to 'bool'"Joe Gallo2014-08-261-1/+1
|
* Apply any outstanding deferred postings at the end of parsingJohn Wiegley2014-04-141-0/+1
|
* Add the concept of "deferred postings"John Wiegley2014-04-131-7/+10
| | | | | This is pretty much exclusively for allowing one to use balance assertions with replicated transactions across multiple files.
* Bump copyright information to 2014Alexis Hildebrandt2014-02-021-1/+1
|
* And const directives in account.h and commodity.h to allow build in OS X ↵Craig Earls2013-10-301-1/+1
| | | | Mavericks.
* Source changes needed for Microsoft Visual C++ compatibility.Tim Crews2013-06-141-2/+2
| | | | Includes an implementation of strptime, compiled only for Win32 platform.
* Bump copyright information to 2013John Wiegley2013-02-181-1/+1
|
* Fixes bug 514. accounts and commodities output now sortsCraig Earls2013-01-291-0/+7
| | | | updated tests included.
* Revert "Bug551 fixed, commodities and accounts now sort"John Wiegley2013-01-161-7/+0
| | | | This reverts commit 67a598f6ff3b9b19b08af108c8bfe26064728457.
* Bug551 fixed, commodities and accounts now sortCraig Earls2013-01-071-0/+7
| | | | | | Added two compare structs for std::map to use. I tried to override the < operator got a clean compile but map wasn't picking it up, I couldn't figure out why so I took the less elegant route.
* Converted the Ledger build system to use CMakeJohn Wiegley2012-05-201-4/+4
|
* Switched to Boost.PropertyTree for XML generationJohn Wiegley2012-05-181-0/+3
|
* Added "last_checkout_cleared" valexpr variableJohn Wiegley2012-05-071-0/+1
|
* Changed a const string map key to stringJohn Wiegley2012-04-281-1/+1
|
* Add 'data' member to account/journal objectsJohn Wiegley2012-04-131-3/+14
|
* Corrected an uninitialized memory bugJohn Wiegley2012-03-191-1/+11
|
* Added --verify-memory and missing TRACE_[CD]TOR callsJohn Wiegley2012-03-181-1/+10
|
* Account valexprs: earliest_checkin, latest_checkoutJohn Wiegley2012-03-131-0/+3
| | | | | Lets you access the earliest/latest checkin/checkout times for timelog entries in an account. Will be NULL if the account doesn't contain any.
* Added parsing support for the many value directivesJohn Wiegley2012-03-071-0/+1
|
* Increased file copyrights to 2012John Wiegley2012-02-291-1/+1
|
* Scopes can now provide a description of themselvesJohn Wiegley2010-06-241-0/+4
| | | | | | This isn't being used yet, but it likely will to improve the information presented to users if their value expressions fail to compile or evaluate.
* 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
|