summaryrefslogtreecommitdiff
path: root/src/item.cc
Commit message (Collapse)AuthorAgeFilesLines
* Made an assert more relaxed in item_context()John Wiegley2012-03-191-1/+1
|
* Another fix to metadata value parsingJohn Wiegley2012-03-071-15/+9
|
* Fix parsing of metadata values containing spacesJohn Wiegley2012-03-071-13/+19
|
* Increased file copyrights to 2012John Wiegley2012-02-291-1/+1
|
* Fixed problem with the Python buildJohn Wiegley2012-02-291-5/+2
|
* Change occurrences of auxiliary_date to just aux_dateJohn Wiegley2012-02-281-1/+1
|
* Renamed actual/effective dates to primary/auxiliaryJohn Wiegley2012-02-281-9/+13
|
* The "id" of an item now maps to its UUIDJohn Wiegley2012-02-271-0/+10
|
* Added --rich-data for 'convert', and SHA1 checksum checkingJohn Wiegley2012-02-261-1/+1
|
* Fixed many Clang type conversion warnings with static_castJohn Wiegley2012-02-171-1/+1
|
* Changed an int to std::size_tJohn Wiegley2012-02-171-1/+1
|
* Fixes for variable shadowing (15/28)John Wiegley2012-02-171-3/+3
|
* Cleanup whitespaceJohn Wiegley2011-08-181-1/+1
|
* Improved an assertJohn Wiegley2011-02-121-3/+2
|
* A metadata key must occur at the beginningJohn Wiegley2010-06-181-1/+3
| | | | | | | | | Before, this was valid: ; Today Yesterday: Tomorrow Which would set the key Yesterday to the value Tomorrow. Now, it is just an ordinary comment.
* has_tag and get_tag now take an 'inherit' parameterJohn Wiegley2010-06-181-4/+5
|
* Only look for [date] outside of metadata entriesJohn Wiegley2010-06-181-16/+16
|
* Revised how Ledger handles the "current year"John Wiegley2010-06-141-11/+9
| | | | | 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.
* Completely reworked argument passing in expressionsJohn Wiegley2010-06-131-7/+6
|
* Add support for typed metadataJohn Wiegley2010-06-121-7/+23
| | | | | | | | | | 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-21/+23
|
* Untabified all source filesJohn Wiegley2010-06-111-57/+57
|
* Fixed interaction with -V/X and grouped postingsJohn Wiegley2010-06-091-0/+5
| | | | | | | | | | With -s, -M/Y/D, -n, and a few other flags, postings get "grouped" into meta-transactions that contain more postings than before. In all these cases, -V use the date of the *earliest* posting in that group, which makes little sense and caused breakages with -J. It now uses the latest date. Fixes #197 / 68EAF363-D0FE-4127-866E-A5AEBACB65D6
* Added new "addr" value expression functionJohn Wiegley2010-06-031-0/+6
| | | | | It returns the address of the given object as an integer. This can be used to uniquely compare entities.
* Empty notes and tags now return null valuesJohn Wiegley2010-05-301-4/+5
|
* Tags were not being set properly on postingsJohn Wiegley2010-03-171-15/+22
|
* Rewrite the "print" command as a custom functionJohn Wiegley2010-03-081-12/+24
| | | | | 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/+5
|
* Added a "seq" sequence property for all itemsJohn Wiegley2010-02-041-0/+6
| | | | | This indicates the absolute parsing order of every transaction and posting. It is 0 for generated items.
* Added a --pivot=TAG optionJohn Wiegley2010-02-021-5/+33
| | | | | | This is equivalent to the following: --account='"TAG:" + tag(/TAG/)'
* Guard against using an uninitialized valueJohn Wiegley2010-01-181-1/+4
| | | | Fixes DDB54BB8-8C1C-4129-A137-07A38068F3BE
* Whitespace fixJohn Wiegley2009-11-241-2/+4
|
* Made the transaction date parser a bit more strictJohn Wiegley2009-11-151-10/+13
|
* Added historical support for single-letter valexprsJohn Wiegley2009-11-141-0/+5
|
* Changed the type being throw of some exceptionsJohn Wiegley2009-11-051-5/+5
|
* Segregated symbols into 5 separate namespacesJohn Wiegley2009-11-041-1/+5
| | | | | | | | | | | | | | | | | | | | | 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)
* If an item doesn't have a given tag, return ""John Wiegley2009-11-011-1/+1
|
* Improved arg checking for several valexpr functionsJohn Wiegley2009-10-311-5/+22
|
* Add a position_t object for tracking item positionsJohn Wiegley2009-10-301-13/+17
| | | | It is also optional, which is useful for generated items.
* Added missing check in item_t::get_actualJohn Wiegley2009-10-301-1/+1
|
* Fixed many compiler warnings from g++ 4.4John Wiegley2009-10-251-1/+1
|
* Removed reliance on strptime/strftimeJohn Wiegley2009-10-111-2/+2
| | | | | | | | The code now uses Boost's input and output facets for times and dates. This ensures completely consistency regarding timezones and times, and fixes the regression test that was broken while I was away coding in London (where it was GMT-0 and I didn't notice the difference between local and GMT).
* Restored --percent option, added baseline testJohn Wiegley2009-06-211-0/+11
|
* If a posting comment is very short, let it hangJohn Wiegley2009-06-141-3/+5
| | | | This applies when using the "print" report, or the "comment" variable.
* Fix pointer const-ness in parse_tags()Andrew Potter2009-05-261-2/+2
|
* Enabled use of pre-compiled headers by defaultJohn Wiegley2009-03-101-0/+2
|
* Cured several harmless compiler warningsJohn Wiegley2009-03-041-0/+2
|
* Changed how comments are output to be more logicalJohn Wiegley2009-03-011-6/+9
|
* Corrected warnings g++-4.3.3 was complaining aboutJohn Wiegley2009-02-281-1/+1
|