summaryrefslogtreecommitdiff
path: root/src/journal.h
Commit message (Collapse)AuthorAgeFilesLines
* Add support for --hashes=sha512_256 as another algorithmJohn Wiegley2024-08-051-2/+4
|
* Add support for hash chaining to detect modifications in postingsJohn Wiegley2024-08-051-2/+2
| | | | | | | | | | | | | | | | | | | 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
* 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
* fileinfo_t: remove size memberMaximilian Eschenbacher2022-02-221-4/+2
| | | | | | | | | | | it is currently not required but set. Incidentally, calling file_size() on a bash pipe e.g. /proc/self/fd/11 fails with: Error: boost::filesystem::file_size: Operation not permitted: "/proc/self/fd/11" when executing ledger as ledger -f <(cat journal)
* Fix issues related to payees declared on posting's metadataDiogo Trentini2021-02-021-1/+7
| | | | | Payees declared on posting's metadata are now validated with `--check-payees` option. Also, their aliases are now considered on reports as well.
* Make explicit option a no-opCandyAngel2020-04-031-5/+0
| | | | Fixes #1877
* Specify namespace of uintmax_takater2020-03-031-4/+4
| | | | | | | This fixes #1833 for me. @jwiegley said it's reasonable change, and nobody else took action so here it goes. The patch is the same as proposed originally, modulo whitespace.
* [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]
* [misc] Update year in copyright notice to 2016Alexis Hildebrandt2016-01-021-1/+1
| | | | [ci skip]
* [ledger] Remove --cache optionAlexis Hildebrandt2015-02-181-35/+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}/"
* support payee uuid directiveChristophe Rhodes2014-05-131-0/+3
| | | | | | | | | | | | | The semantics of this are a little bit tricky: we want, if we come across a transaction with exactly the given UUID, to set the transaction's payee to be the specified one. We need to set that payee before the first post in the transaction is parsed, otherwise that post will inherit the wrong payee; however, we need to do it after the transaction's tags have been parsed. The implementation as it is in this commit is potentially a little wasteful, if there are post-like (non-comment non-assertion) entries in the transaction that don't successfully parse as posts.
* rename payee_mappings to payee_alias_mappingsChristophe Rhodes2014-05-121-35/+35
| | | | (and similar renames) in preparation for payee_uuid_mappings
* The option --permissive now quiets balance assertionsJohn Wiegley2014-04-131-0/+1
|
* Adding option --no-aliases to completely disable alias expansionPeter Feigl2014-02-261-0/+1
|
* Adding option --recursive-aliases, adding documentation to man-page and manualPeter Feigl2014-02-261-0/+1
|
* Adding support for recursive aliases.Peter Feigl2014-02-251-0/+2
| | | | | | | | | | | Alias expansion is now a loop. If you define alias A=B:A alias B=C:B then A will expand to C:B:A. Also added a short section to the manual about this.
* 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
|
* Changed a const string map key to stringJohn Wiegley2012-04-281-11/+11
|
* Always call TRACE_CTOR at the end of constructorsJohn Wiegley2012-03-201-1/+1
|
* Added option --day-breakJohn Wiegley2012-03-171-0/+1
|
* Added parsing support for the many value directivesJohn Wiegley2012-03-071-3/+4
|
* Refactored the notion of "the current parsing context"John Wiegley2012-03-011-20/+12
|
* Increased file copyrights to 2012John Wiegley2012-02-291-1/+1
|
* Removed comment that no longer made senseJohn Wiegley2012-02-291-2/+0
|
* Added --check-payees optionJohn Wiegley2012-02-271-0/+1
|
* Implement the "tag" metadata directiveJohn Wiegley2012-02-271-14/+14
|
* Added new account/payee/commodity directivesJohn Wiegley2012-02-271-7/+38
| | | | | Also added supporting options: --explicit, --permissive, --pedantic, as well as new behavior for --strict.
* Added --rich-data for 'convert', and SHA1 checksum checkingJohn Wiegley2012-02-261-0/+3
|
* Revised how Ledger handles the "current year"John Wiegley2010-06-141-4/+2
| | | | | 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.
* Automated xacts may now contain "deferred tags"John Wiegley2010-06-131-2/+4
| | | | | | | | | | | | | | | | For example, consider the following automated transaction: = /Food/ ; Next Date:: date + 10 (Expenses:Tax) 1.00 ; Next Date:: date + 20 This will add a metadata field named 'Next Date' to the _matching posting_, with a value that is 10 days later than that posting. It will also generate a new posting for that transaction, whose amount is the same as the matching posting. Further, it will add a 'Next Date' metadata tag to the _generated posting_ whose value is 20 days later than the date of the matching posting.
* Untabified all source filesJohn Wiegley2010-06-111-22/+22
|
* Two members of journal_t weren't being serializedJohn Wiegley2010-06-021-1/+3
|
* Added new "payee" and "capture" directivesJohn Wiegley2010-03-051-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The payee directive allows for transformation of payee names during the parsing of a Ledger file. This means you can record the payee name in one form, but always have it reported in another form. The syntax is (and will be): payee PAYEE_NAME REGEXP or payee PAYEE_NAME REGEXP1 REGEXP2 ... The account directive sets the account automatically based on the payee iff the base account name is Unknown. For example, if you have a bunch of transaction in Expenses:Unknown, you can assign accounts for several automatically using: account ACCOUNT_NAME PAYEE_REGEXP or account ACCOUNT_NAME PAYEE_REGEXP1 PAYEE_REGEXP2 ...
* Updated copyrights to 2003-2010John Wiegley2010-03-051-1/+1
|
* Many improvements to Ledger's Python bindingsJohn Wiegley2009-11-191-3/+0
|
* Added has_xdata() methods for journal_t and xact_tJohn Wiegley2009-11-121-0/+1
|
* Did away with the "finalizer" abstractionJohn Wiegley2009-11-111-10/+2
| | | | | This was from an earlier time, when it was intended to be used by Python. But it's not needed anymore.
* Removed a bunch of empty commentsJohn Wiegley2009-11-081-9/+0
|
* Renamed journal_t::basket to bucketJohn Wiegley2009-11-071-2/+2
|
* Moved journal reading code into journal_tJohn Wiegley2009-11-051-0/+12
|
* Moved xdata clearing code into each type properJohn Wiegley2009-11-051-0/+2
|
* Transactions, etc., are now accessed by iteratorsJohn Wiegley2009-11-051-0/+26
|
* Whitespace fixJohn Wiegley2009-11-041-2/+2
|