summaryrefslogtreecommitdiff
path: root/src/xact.cc
Commit message (Collapse)AuthorAgeFilesLines
* Properly handle metadata tags on auto-postingsJohn Wiegley2012-11-121-6/+21
|
* Account names in auto-xacts can be format stringsJohn Wiegley2012-11-121-0/+9
|
* Implemented Bug551 Automatic Transactions are cleared base on parentCraig Earls2012-10-231-0/+8
|
* Fixed a subtle memory overwriteJohn Wiegley2012-06-271-8/+10
| | | | Fixes #608
* Converted the Ledger build system to use CMakeJohn Wiegley2012-05-201-5/+5
|
* Switched to Boost.PropertyTree for XML generationJohn Wiegley2012-05-181-42/+16
|
* Switch to using Boost.FormatJohn Wiegley2012-05-141-5/+4
|
* Resolve some issues with proof buildsJohn Wiegley2012-04-151-1/+2
|
* Add 'data' member to account/journal objectsJohn Wiegley2012-04-131-0/+3
|
* Simplified some code in xact.ccJohn Wiegley2012-03-231-62/+42
|
* Improved error reporting for bad account namesJohn Wiegley2012-03-161-2/+21
| | | | Fixes #374
* Added the notion of "virtual costs"John Wiegley2012-03-091-1/+1
|
* Added some missing DEBUG #if'sJohn Wiegley2012-03-071-0/+2
|
* Deferred notes were being processed too lateJohn Wiegley2012-03-071-8/+8
|
* Added parsing support for the many value directivesJohn Wiegley2012-03-071-0/+2
|
* Call register_account for posts created by auto xactsJohn Wiegley2012-03-071-2/+3
|
* Corrected several compile and link problemsJohn Wiegley2012-03-061-0/+2
|
* Added (disabled) code to stop sorting generated balancing postingsJohn Wiegley2012-03-051-3/+25
|
* Added some DEBUG statementsJohn Wiegley2012-03-051-0/+2
|
* When deleting a post from an xact, remove it from its accountJohn Wiegley2012-03-051-0/+2
|
* Refactored the notion of "the current parsing context"John Wiegley2012-03-011-2/+4
|
* Increased file copyrights to 2012John Wiegley2012-02-291-1/+1
|
* Renamed actual/effective dates to primary/auxiliaryJohn Wiegley2012-02-281-3/+3
|
* Added a TODO commentJohn Wiegley2012-02-271-0/+2
|
* OptimizationsJohn Wiegley2012-02-271-3/+4
|
* Implement the "tag" metadata directiveJohn Wiegley2012-02-271-3/+3
|
* Fixed the scoping of auto xact predicatesJohn Wiegley2012-02-271-4/+6
|
* Whitespace fixJohn Wiegley2012-02-271-3/+2
|
* The "id" of an item now maps to its UUIDJohn Wiegley2012-02-271-27/+0
|
* Removed unneeded break statementsJohn Wiegley2012-02-171-1/+0
|
* Cleanup whitespaceJohn Wiegley2011-08-181-3/+3
|
* Corrected a transient display order flawJohn Wiegley2011-03-281-1/+10
| | | | This was harmless, but affected the testability of results.
* Price annotation no longer inject an implied costJohn Wiegley2010-06-221-21/+7
| | | | | | | | | | | | | | | | | | | | | | | Consider the following transaction: 2010-06-22 Sample Assets:Brokerage 10 AAPL {$30} Assets:Brokerage Previously, this would have been equivalent to: 2010-06-22 Sample Assets:Brokerage 10 AAPL @ $30 Assets:Brokerage However, this is not always what the user expects to happen. When @ is not being used, the transaction should reflect a mere transfer of commodities. This is now how it works, and thus the above transaction is now equivalent to the following instead: 2010-06-22 Sample Assets:Brokerage 10 AAPL {$30} Assets:Brokerage -10 AAPL {$30}
* Don't do cost finalization for auto/period xactsJohn Wiegley2010-06-221-48/+50
|
* Corrected a major flaw in the transaction finalizerJohn Wiegley2010-06-211-2/+3
| | | | | | When a transaction has two commodities, but also a null posting, no attempt should be made to resolve the costs in terms of the primary commodity.
* If a posting's price has an annotation tag, save itJohn Wiegley2010-06-201-25/+33
|
* Changes for building with Visual Studio 2008John Wiegley2010-06-151-1/+1
|
* Revised how Ledger handles the "current year"John Wiegley2010-06-141-10/+5
| | | | | 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.
* Fixed several misplaced parenthesesJohn Wiegley2010-06-131-2/+2
|
* Report error context in expressions more preciselyJohn Wiegley2010-06-131-2/+2
|
* Completely reworked argument passing in expressionsJohn Wiegley2010-06-131-15/+10
|
* Added support for assert, check and expr directivesJohn Wiegley2010-06-131-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These can occur in many places: ; Within an automated transaction, the assert is evaluated every time ; a posting is matched, with the expression context set to the ; matching posting. = /Food/ assert account("Expenses:Food").total >= $100 2010-06-12 Sample Expenses:Food $100 Assets:Checking ; At file scope, the expression is evaluated with "global" scope. assert account("Expenses:Food").total == $100 ; At the top of a transction, the assertion's scope is the ; transaction. After a posting, the scope is that posting. Note ; however that account totals are only adjusted after successful ; parsing of a transaction, which means that all the assertions below ; are true, even though it appears as though the middle posting should ; affect the total immediately (which is not the case). 2010-06-12 Sample 2 assert account("Expenses:Food").total == $100 Expenses:Food $50 assert account("Expenses:Food").total == $100 Assets:Checking assert account("Expenses:Food").total == $100
* Removed an unused functionJohn Wiegley2010-06-131-7/+0
|
* Automated xacts may now contain "deferred tags"John Wiegley2010-06-131-2/+24
| | | | | | | | | | | | | | | | 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.
* Store metadata values as value_t instead of stringJohn Wiegley2010-06-121-1/+1
|
* Untabified all source filesJohn Wiegley2010-06-111-234/+234
|
* Several corrections to transaction finalizationJohn Wiegley2010-06-101-5/+13
|
* gain/loss posting based on a virtual should also beJohn Wiegley2010-06-101-1/+6
|
* Allow fixated costs, as well as pricesJohn Wiegley2010-06-101-0/+6
| | | | | | | | | 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 minor rounding issue with priced commoditiesJohn Wiegley2010-06-091-4/+6
|