summaryrefslogtreecommitdiff
path: root/src/xact.cc
Commit message (Collapse)AuthorAgeFilesLines
* [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]
* 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}/"
* "mispelled" was misspelledJoseph Mornin2014-09-081-1/+1
|
* Preserve original cost basis when gain or loss is madeMartin Michlmayr2014-07-141-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 commoditiesJohn Wiegley2014-05-081-3/+3
| | | | Fixes #999
* Add the concept of "deferred postings"John Wiegley2014-04-131-1/+4
| | | | | 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
|
* Remove some unnecessary and complicated logicJohn Wiegley2013-05-191-34/+5
| | | | Fixes #712
* fix ledger xml output, remove ledger json commandJohann Klähn2013-03-081-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 2013John Wiegley2013-02-181-1/+1
|
* whitespace cleanupJohann Klähn2013-01-161-5/+5
|
* 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.