summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Preserve the given cost for printMartin Michlmayr2014-07-143-3/+6
| | | | Patch from John Wiegley
* Add a regression test for bug #712Martin Michlmayr2014-07-142-0/+22
|
* Add regression tests for bug #713Martin Michlmayr2014-07-142-0/+88
|
* Regenerate tests for fix for bug #713Martin Michlmayr2014-07-145-1799/+639
| | | | | | | | | | | | | | | | | | | | | | | | | The fix for bug #713 changes the way capital gains as well as basis costs are shown. All of these tests use the same input file, which includes capital gains and losses. The tests are too long to update and verify manually but I verified some files and believe the output is correct. I've therefore updated the tests with the output of the fixed ledger. Let's take baseline/opt-lot-dates.test as one example. In the past, ledger generated the following incorrect Equity entries: 190.42G Equity 236.83G Capital Gains -46.41G Capital Losses If you compare the end of the diff of the test, you'll see: - 35.42G + -155.00G The difference is: 35.42 - -155.00 = 190.42 This matches exactly the Equity entries previously generated, which shouldn't be there.
* Update tests for fix for bug #713Martin Michlmayr2014-07-146-42/+37
| | | | | | | John's fix for bug #713 changes the way basis cost are calculated. The patch also fixes #712, which caused ledger to create automatic Equity:Capital Gains that were not correct. Update the test cases accordingly after verifying the new output.
* 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.
* Make the reconcile balance status message more clear.Craig Earls2014-07-131-1/+1
|
* make leder-mode-dump-configuration interactiveCraig Earls2014-07-131-0/+1
|
* Added ledger-report-auto-refresh customization variable.Craig Earls2014-07-121-2/+8
|
* Improve report redo logic.Craig Earls2014-07-121-10/+12
|
* ledger-redo added as after-save-hookCraig Earls2014-07-122-1/+3
|
* Merge branch 'master' into ledger-mode-bug-1063-auto-refresh-reportsCraig Earls2014-07-121-11/+10
|\
| * Merge pull request #309 from holomorph/masterSteve Purcell2014-07-121-11/+10
| |\ | | | | | | use inherits for related faces that are the same
| | * ledger-fonts.el: untabifyMark Oteiza2014-07-121-2/+2
| | |
| | * use inherits for related faces that are the sameMark Oteiza2014-07-121-9/+8
| |/
* / Code cleanupCraig Earls2014-07-125-69/+26
|/
* Merge pull request #308 from vanicat/t/dont-use-flattenCraig Earls2014-07-091-2/+2
|\ | | | | Thanks for catching this. I wonder why they took it out? This is much less readable than 'flatten'.
| * ledger-reconcile.el: don't use flattenRémi Vanicat2014-07-091-2/+2
|/ | | | The flatten function is not part of Emacs, so better not use it.
* Merge branch 'ledger-mode-bbug-875-configurable-reconcile-line'Craig Earls2014-07-031-28/+73
|\
| * Finished configurable reconcile format line.Craig Earls2014-07-031-4/+15
| |
| * ledger-reconcile-compile-format-string returns a lambda that is used to ↵Craig Earls2014-07-021-17/+25
| | | | | | | | format the posting data
| * Refactor code to pull posting format into separate defun. Added reconcile ↵Craig Earls2014-07-021-27/+53
| | | | | | | | buffer header and line configuration defcustom.
* | Merge pull request #307 from redstreet/masterCraig Earls2014-07-031-22/+74
|\ \ | | | | | | Updated out of date value expression section in the documentation.
| * | Fix to 90519fc6e132bd (moved paragraph to end of section).Redstreet2014-07-031-5/+4
| | |
| * | Updated out of date value expression section in the documentation.Redstreet2014-07-031-22/+75
|/ /
* / Unify debugging categoriesMartin Michlmayr2014-07-013-10/+10
|/ | | | | Debugging categories follow the filename, which in this case is singular (rather than plural) "account" and "amount".
* Fix bug 1051 ledger-posting-amount-face doesn't workCraig Earls2014-06-301-0/+7
|
* Add regression test for commit de17ccf1Martin Michlmayr2014-06-301-0/+61
| | | | | Add regression test for commit de17ccf1 (" When a status flag (! or *) is explicitly specified for an individual…")
* Format commands properlyMartin Michlmayr2014-06-301-2/+7
|
* Typo fixMartin Michlmayr2014-06-301-1/+1
|
* Document --valuesMartin Michlmayr2014-06-302-1/+4
|
* Document --unrealizedMartin Michlmayr2014-06-302-1/+4
|
* Merge pull request #306 from maxsatula/status-behaviorJohn Wiegley2014-06-301-2/+1
|\ | | | | Status (cleared/pending/uncleared) processing behavior
| * When a status flag (! or *) is explicitly specified for an individual ↵Max Satula2014-06-301-2/+1
|/ | | | posting, it always has a priority over entire transaction status.
* ledger reconcile will recommend the account in the posting, even if point ↵Craig Earls2014-06-291-2/+1
| | | | isn't in it.
* ensures that account with spaces in the names are correctly rested by ↵Craig Earls2014-06-291-9/+10
| | | | ledger-context
* context was not handling decimal-comma properly.Craig Earls2014-06-291-2/+2
|
* ledger-reconcile clean byte-compileCraig Earls2014-06-281-5/+5
|
* ledger-complete clean byte compileCraig Earls2014-06-281-20/+4
|
* Fix Bug 1057: Emacs output does not escape special characters.Craig Earls2014-06-262-74/+81
|
* Fix bug 1052 ledger-mode mangles transactions with tabs.Craig Earls2014-06-253-4/+14
|
* Merge pull request #301 from csrhodes/masterCraig Earls2014-06-251-1/+2
|\ | | | | | | | | don't add a space when completing. Sorry it took so long. Somehow I got it in my mind that this was a bug report and I just didm;t have time to look.
| * don't add a space when completingChristophe Rhodes2014-06-131-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | completing payees with ledger-magic-tab would add a space when there was only one possible completion. That space, in ledger's file format, would always need to be deleted again it might be helpful when completing accounts to add two spaces, but the current completion code organization can't (easily) distinguish between payee and account completion. Adding one space is harmful to account completion too, in that `ledger-account.*regex' parse accounts by looking for two spaces, and treat an account name ending with a single space before the newline as having the space as part of the account name.
* | Fix bug 1059, ledger mode deletes character if a posting is cleared but ↵Craig Earls2014-06-241-1/+2
| | | | | | | | there are less that four space between the account and the amount.
* | Merge pull request #304 from thdox/save-in-reconcile-bufferCraig Earls2014-06-221-0/+1
|\ \ | | | | | | Restore C-x C-s keyboard shortcut in reconcile buffer
| * | Was introduced with commit 73f336a, which removed a functionality fromthdox2014-06-221-0/+1
| |/ | | | | | | | | | | ledger.el old ledger mode. I maintain a branch locally to always restore C-x C-s keyboard shortcut that is so deeply inside my Emacs muscle memory. I propose to restore this definitely.
* | Merge pull request #302 from thdox/bash-completionMartin Michlmayr2014-06-221-1/+1
|\ \ | | | | | | Add latest contributed options to bash completion
| * | Restore --raw that I erroneously deletedthdox2014-06-221-1/+1
| | |
| * | Add latest contributed options to bash completionthdox2014-06-221-1/+1
| |/
* | Merge pull request #303 from thdox/fix-typo-documentationMartin Michlmayr2014-06-221-2/+2
|\ \ | |/ |/| Fix minor typo