Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Preserve original cost basis when gain or loss is made | Martin Michlmayr | 2014-07-14 | 1 | -2/+4 |
| | | | | | | | | | | | | | | | | | | Change the definition of cost: in the past, if you bought 1 AAA for $10 and then sold it for $12, ledger would take $12 as the cost. With the patch, the original cost of $10 is preserved ss the cost basis. In my opinion, this brings ledger in line with accounting expectations. This change fixes bugs #712 and #713. Bug #712 is about Equity:Capital Gains and Equity:Capital Loss entries ledger automatically generates that are in my opinion incorrect. Bug #713 is about strange behaviour with -B after a capital gain or loss is made. Patch from John Wiegley. | ||||
* | Use the POST_COST_VIRTUAL flag when exchange commodities | John Wiegley | 2014-05-08 | 1 | -3/+3 |
| | | | | Fixes #999 | ||||
* | Add the concept of "deferred postings" | John Wiegley | 2014-04-13 | 1 | -1/+4 |
| | | | | | This is pretty much exclusively for allowing one to use balance assertions with replicated transactions across multiple files. | ||||
* | Bump copyright information to 2014 | Alexis Hildebrandt | 2014-02-02 | 1 | -1/+1 |
| | |||||
* | Remove some unnecessary and complicated logic | John Wiegley | 2013-05-19 | 1 | -34/+5 |
| | | | | Fixes #712 | ||||
* | fix ledger xml output, remove ledger json command | Johann Klähn | 2013-03-08 | 1 | -12/+6 |
| | | | | | | | | | | | | As the format used by property trees to represent valid JSON and that for valid XML is too different and given that there are more requests for valid XML output I decided to pursue a quick fix and remove the json command in favor of a working xml command. See bug #782, #909, recent discussion on mailing list. JSON support is postponed until I or someone else finds time to work on this or the python bindings are more stable. | ||||
* | Bump copyright information to 2013 | John Wiegley | 2013-02-18 | 1 | -1/+1 |
| | |||||
* | whitespace cleanup | Johann Klähn | 2013-01-16 | 1 | -5/+5 |
| | |||||
* | Properly handle metadata tags on auto-postings | John Wiegley | 2012-11-12 | 1 | -6/+21 |
| | |||||
* | Account names in auto-xacts can be format strings | John Wiegley | 2012-11-12 | 1 | -0/+9 |
| | |||||
* | Implemented Bug551 Automatic Transactions are cleared base on parent | Craig Earls | 2012-10-23 | 1 | -0/+8 |
| | |||||
* | Fixed a subtle memory overwrite | John Wiegley | 2012-06-27 | 1 | -8/+10 |
| | | | | Fixes #608 | ||||
* | Converted the Ledger build system to use CMake | John Wiegley | 2012-05-20 | 1 | -5/+5 |
| | |||||
* | Switched to Boost.PropertyTree for XML generation | John Wiegley | 2012-05-18 | 1 | -42/+16 |
| | |||||
* | Switch to using Boost.Format | John Wiegley | 2012-05-14 | 1 | -5/+4 |
| | |||||
* | Resolve some issues with proof builds | John Wiegley | 2012-04-15 | 1 | -1/+2 |
| | |||||
* | Add 'data' member to account/journal objects | John Wiegley | 2012-04-13 | 1 | -0/+3 |
| | |||||
* | Simplified some code in xact.cc | John Wiegley | 2012-03-23 | 1 | -62/+42 |
| | |||||
* | Improved error reporting for bad account names | John Wiegley | 2012-03-16 | 1 | -2/+21 |
| | | | | Fixes #374 | ||||
* | Added the notion of "virtual costs" | John Wiegley | 2012-03-09 | 1 | -1/+1 |
| | |||||
* | Added some missing DEBUG #if's | John Wiegley | 2012-03-07 | 1 | -0/+2 |
| | |||||
* | Deferred notes were being processed too late | John Wiegley | 2012-03-07 | 1 | -8/+8 |
| | |||||
* | Added parsing support for the many value directives | John Wiegley | 2012-03-07 | 1 | -0/+2 |
| | |||||
* | Call register_account for posts created by auto xacts | John Wiegley | 2012-03-07 | 1 | -2/+3 |
| | |||||
* | Corrected several compile and link problems | John Wiegley | 2012-03-06 | 1 | -0/+2 |
| | |||||
* | Added (disabled) code to stop sorting generated balancing postings | John Wiegley | 2012-03-05 | 1 | -3/+25 |
| | |||||
* | Added some DEBUG statements | John Wiegley | 2012-03-05 | 1 | -0/+2 |
| | |||||
* | When deleting a post from an xact, remove it from its account | John Wiegley | 2012-03-05 | 1 | -0/+2 |
| | |||||
* | Refactored the notion of "the current parsing context" | John Wiegley | 2012-03-01 | 1 | -2/+4 |
| | |||||
* | Increased file copyrights to 2012 | John Wiegley | 2012-02-29 | 1 | -1/+1 |
| | |||||
* | Renamed actual/effective dates to primary/auxiliary | John Wiegley | 2012-02-28 | 1 | -3/+3 |
| | |||||
* | Added a TODO comment | John Wiegley | 2012-02-27 | 1 | -0/+2 |
| | |||||
* | Optimizations | John Wiegley | 2012-02-27 | 1 | -3/+4 |
| | |||||
* | Implement the "tag" metadata directive | John Wiegley | 2012-02-27 | 1 | -3/+3 |
| | |||||
* | Fixed the scoping of auto xact predicates | John Wiegley | 2012-02-27 | 1 | -4/+6 |
| | |||||
* | Whitespace fix | John Wiegley | 2012-02-27 | 1 | -3/+2 |
| | |||||
* | The "id" of an item now maps to its UUID | John Wiegley | 2012-02-27 | 1 | -27/+0 |
| | |||||
* | Removed unneeded break statements | John Wiegley | 2012-02-17 | 1 | -1/+0 |
| | |||||
* | Cleanup whitespace | John Wiegley | 2011-08-18 | 1 | -3/+3 |
| | |||||
* | Corrected a transient display order flaw | John Wiegley | 2011-03-28 | 1 | -1/+10 |
| | | | | This was harmless, but affected the testability of results. | ||||
* | Price annotation no longer inject an implied cost | John Wiegley | 2010-06-22 | 1 | -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 xacts | John Wiegley | 2010-06-22 | 1 | -48/+50 |
| | |||||
* | Corrected a major flaw in the transaction finalizer | John Wiegley | 2010-06-21 | 1 | -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 it | John Wiegley | 2010-06-20 | 1 | -25/+33 |
| | |||||
* | Changes for building with Visual Studio 2008 | John Wiegley | 2010-06-15 | 1 | -1/+1 |
| | |||||
* | Revised how Ledger handles the "current year" | John Wiegley | 2010-06-14 | 1 | -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 parentheses | John Wiegley | 2010-06-13 | 1 | -2/+2 |
| | |||||
* | Report error context in expressions more precisely | John Wiegley | 2010-06-13 | 1 | -2/+2 |
| | |||||
* | Completely reworked argument passing in expressions | John Wiegley | 2010-06-13 | 1 | -15/+10 |
| | |||||
* | Added support for assert, check and expr directives | John Wiegley | 2010-06-13 | 1 | -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 |