summaryrefslogtreecommitdiff
path: root/src/item.h
Commit message (Collapse)AuthorAgeFilesLines
* Make xact hashes independent of posting orderJohn Wiegley2024-08-051-4/+0
| | | | | Also, support matching provided hashes against a prefixed of the generated hash.
* Add support for hash chaining to detect modifications in postingsJohn Wiegley2024-08-051-0/+4
| | | | | | | | | | | | | | | | | | | The following details of a posting contribute to its hash: fullname of account string representation of amount Each posting hashes contributes to the transaction hash, which is compromised of: previous transaction’s hash (as encountered in parsing order) actual date optional auxiliary date optional code payee hashes of all postings Note that this means that changes in the “code” or any of the comments
* fix #2220, bucket transactions ignored with reg --relatedTavis Ormandy2023-04-181-0/+1
| | | | | | This adds a new item flag, `ITEM_INFERRED`, that differentiates generated items from bucket items. This makes them show up as related items in reports.
* 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
* Drop support for gcc 2 and earlierTim Landscheidt2019-01-251-7/+7
|
* [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]
* Fix compilation error with boost 1.61Denis2016-09-121-1/+1
|
* [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-36/+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
|
* Bump copyright information to 2014Alexis Hildebrandt2014-02-021-1/+1
|
* Bump copyright information to 2013John Wiegley2013-02-181-1/+1
|
* Converted the Ledger build system to use CMakeJohn Wiegley2012-05-201-2/+2
|
* Switched to Boost.PropertyTree for XML generationJohn Wiegley2012-05-181-0/+1
|
* post.x = y defines metadata tag xJohn Wiegley2012-04-041-0/+2
|
* Make metadata tags case insensitiveJohn Wiegley2012-04-041-1/+2
|
* Whitespace fixJohn Wiegley2012-04-041-2/+1
|
* Always call TRACE_CTOR at the end of constructorsJohn Wiegley2012-03-201-2/+2
|
* post_t's copy constructor wasn't copying xdata_John Wiegley2012-03-131-1/+1
|
* Increased file copyrights to 2012John Wiegley2012-02-291-1/+1
|
* Fixed problem with the Python buildJohn Wiegley2012-02-291-0/+13
|
* Renamed actual/effective dates to primary/auxiliaryJohn Wiegley2012-02-281-10/+10
|
* Keep notes on their own line if parsed that wayJohn Wiegley2012-02-261-4/+6
|
* Added has_date() method to item_tJohn Wiegley2010-06-221-0/+4
|
* has_tag and get_tag now take an 'inherit' parameterJohn Wiegley2010-06-181-7/+11
|
* Revised how Ledger handles the "current year"John Wiegley2010-06-141-8/+6
| | | | | Now when the Y directive sets the current year for a region, it affects everything, as if the clock really were set back to that year.
* Add support for typed metadataJohn Wiegley2010-06-121-4/+8
| | | | | | | | | | The metadata construct 'Key: Value' is now just a special case for 'Key:: "Value"'. Another after a :: in metadata setting is parsed as a full value expression and typed as such. For example: ; Key:: $400 + $500 ledger -l 'tag("Key") < $1000'
* Store metadata values as value_t instead of stringJohn Wiegley2010-06-121-8/+8
|
* Untabified all source filesJohn Wiegley2010-06-111-20/+20
|
* Increase item_t's flags to 16-bitJohn Wiegley2010-06-101-4/+4
|
* Tags were not being set properly on postingsJohn Wiegley2010-03-171-4/+6
|
* Rewrite the "print" command as a custom functionJohn Wiegley2010-03-081-3/+4
| | | | | There ended up being too many corner cases for the generalized formatter to handle.
* Updated copyrights to 2003-2010John Wiegley2010-03-051-1/+1
|
* Added actual_date() methods for itemsJohn Wiegley2010-02-051-0/+4
|
* Added a "seq" sequence property for all itemsJohn Wiegley2010-02-041-1/+5
| | | | | This indicates the absolute parsing order of every transaction and posting. It is 0 for generated items.
* --data shouldn't modify the underlying itemJohn Wiegley2009-11-121-6/+0
|
* Added --date, similar to --account and --payeeJohn Wiegley2009-11-111-0/+6
| | | | | | | 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
* Removed a bunch of empty commentsJohn Wiegley2009-11-081-9/+0
|
* 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)