summaryrefslogtreecommitdiff
path: root/src/post.h
Commit message (Collapse)AuthorAgeFilesLines
* [ledger] Remove --cache optionAlexis Hildebrandt2015-02-181-18/+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
|
* Preserve the given cost for printMartin Michlmayr2014-07-141-0/+1
| | | | Patch from John Wiegley
* Add the concept of "deferred postings"John Wiegley2014-04-131-0/+1
| | | | | 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
|
* Add a missing % characterJohn Wiegley2013-05-191-1/+1
|
* Bump copyright information to 2013John Wiegley2013-02-181-1/+1
|
* Shorten debug commentJohn Wiegley2012-11-231-1/+1
|
* Converted the Ledger build system to use CMakeJohn Wiegley2012-05-201-1/+1
|
* Switched to Boost.PropertyTree for XML generationJohn Wiegley2012-05-181-2/+1
|
* Switch to using Boost.FormatJohn Wiegley2012-05-141-1/+1
|
* Whitespace fixJohn Wiegley2012-04-041-2/+2
|
* Forgot to copy two members in post_t's copy-ctorJohn Wiegley2012-03-281-4/+4
|
* Always call TRACE_CTOR at the end of constructorsJohn Wiegley2012-03-201-1/+1
|
* Access to checkin/checkout of timelog entriesJohn Wiegley2012-03-131-7/+9
|
* post_t's copy constructor wasn't copying xdata_John Wiegley2012-03-131-0/+7
|
* Added the notion of "virtual costs"John Wiegley2012-03-091-1/+2
|
* Added parsing support for the many value directivesJohn Wiegley2012-03-071-0/+3
|
* Increased file copyrights to 2012John Wiegley2012-02-291-1/+1
|
* Renamed actual/effective dates to primary/auxiliaryJohn Wiegley2012-02-281-3/+3
|
* Added some debug codeJohn Wiegley2011-02-101-0/+1
|
* Scopes can now provide a description of themselvesJohn Wiegley2010-06-241-0/+10
| | | | | | 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.
* has_tag and get_tag now take an 'inherit' parameterJohn Wiegley2010-06-181-7/+11
|
* Individual postings may each have their own payeeJohn Wiegley2010-06-171-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If a posting has the metadata field "Payee" set to a string, that will be used as the payee name for that posting. This affects the register report, the payees report, and the --by-payee option. This is useful because sometimes I send, say, 4 checks at a time to my bank. So on my bank statement, this is all just one amount: 2010-06-17 Sample Assets:Bank $400.00 Income:Check1 $-100.00 Income:Check2 $-100.00 Income:Check3 $-100.00 Income:Check4 $-100.00 Though it's important that the Assets:Bank posting be a single posting of $400 value, I'd like for income reports to show whom each check came from. Now I can say: 2010-06-17 Sample Assets:Bank $400.00 Income:Check1 $-100.00 ; Payee: Person One Income:Check2 $-100.00 ; Payee: Person Two Income:Check3 $-100.00 ; Payee: Person Three Income:Check4 $-100.00 ; Payee: Person Four When I report this, it appears as: 10-Jun-17 Sample Assets:Bank $400.00 $400.00 Person One Income:Check1 $-100.00 $300.00 Person Two Income:Check2 $-100.00 $200.00 Person Three Income:Check3 $-100.00 $100.00 Person Four Income:Check4 $-100.00 0 This shows that they are all in the same transaction (which is why the date is not repeated), but they have different payees.
* Store metadata values as value_t instead of stringJohn Wiegley2010-06-121-3/+3
|
* Untabified all source filesJohn Wiegley2010-06-111-34/+34
|
* Allow fixated costs, as well as pricesJohn Wiegley2010-06-101-6/+7
| | | | | | | | | You can now establish a fixated price automatically by way of a fixated cost. The syntax for this is: 2009/11/01 Sample Assets 1 apple @ =$0.10 Equity
* Fixed interaction with -V/X and grouped postingsJohn Wiegley2010-06-091-0/+2
| | | | | | | | | | 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
* Make --anon work with the print commandJohn Wiegley2010-06-051-5/+6
| | | | Fixes #226 / C1C1E731-D991-40ED-BE43-8ED55585386C
* Added account_id and xact_id valexpr vars for postsJohn Wiegley2010-05-181-0/+3
| | | | | account_id is the "whicheth" number for that posting within its account. The xact_id is within its transaction.
* Rewrite the "print" command as a custom functionJohn Wiegley2010-03-081-4/+5
| | | | | There ended up being too many corner cases for the generalized formatter to handle.
* Updated copyrights to 2003-2010John Wiegley2010-03-051-1/+1
|
* Some minor refactoring of the textual parserJohn Wiegley2010-02-051-0/+2
|
* Added post_t::compare_by_date_and_sequence comparatorJohn Wiegley2010-02-051-0/+14
|
* Added actual_date() methods for itemsJohn Wiegley2010-02-051-0/+1
|
* Removed post_t::xdata_t::ptr, which is not usedJohn Wiegley2009-11-141-4/+1
|
* Made ~post_t virtualJohn Wiegley2009-11-121-1/+1
|
* Automated postings defer amount expression calculationJohn Wiegley2009-11-111-0/+2
| | | | | | | | | | | | | | | | | This allows for value expressions to be used which reference the incoming posting, for example: = Income:Clients: (Liabilities:Taxes:VAT1) (floor(amount) * 1) (Liabilities:Taxes:VAT2) 0.19 2009/07/27 * Invoice Assets:Bank:Checking $1,190.45 Income:Clients:ACME_Inc The automated posting for VAT1 will use the floored amount multiplied by a factor, while the posting for VAT2 multiples the whole amount as before.
* XML reporting now works via the "xml" commandJohn Wiegley2009-11-091-0/+2
|
* 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)
* Whitespace fixJohn Wiegley2009-11-041-1/+1
|
* Added "reported posts" into account xdataJohn Wiegley2009-11-021-0/+2
| | | | | | | | | 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.
* Added serialization methods for most typeJohn Wiegley2009-10-301-0/+17
| | | | | This allows journal_t objects to be completed serialized to disk and deserialized.
* Restored pricesdb command and --pricesdb-format optionJohn Wiegley2009-06-181-0/+1
|
* Renamed some flags and members in post_tJohn Wiegley2009-03-051-18/+23
|
* Changed "priced" to "cost_calculated" for clarityJohn Wiegley2009-02-271-4/+4
|