Martin Michlmayr
b886342064
Preserve the given cost for print
...
Patch from John Wiegley
2014-07-14 21:05:54 -04:00
Martin Michlmayr
a44572f3ec
Add a regression test for bug #712
2014-07-14 20:44:48 -04:00
Martin Michlmayr
7241b1f62b
Add regression tests for bug #713
2014-07-14 20:44:05 -04:00
Martin Michlmayr
2854ecdd19
Regenerate tests for fix for bug #713
...
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.
2014-07-14 20:43:24 -04:00
Martin Michlmayr
ddfabe0692
Update tests for fix for bug #713
...
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.
2014-07-14 20:42:44 -04:00
Martin Michlmayr
37b8b5e337
Preserve original cost basis when gain or loss is made
...
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.
2014-07-14 20:39:04 -04:00
Craig Earls
511b17a21f
Make the reconcile balance status message more clear.
2014-07-13 10:37:38 -07:00
Craig Earls
9c664ca3db
make leder-mode-dump-configuration interactive
2014-07-13 09:30:20 -07:00
Craig Earls
eb96044647
Added ledger-report-auto-refresh customization variable.
2014-07-12 22:38:31 -07:00
Craig Earls
2f9240ae00
Improve report redo logic.
2014-07-12 22:32:59 -07:00
Craig Earls
4606bb293d
ledger-redo added as after-save-hook
2014-07-12 21:50:28 -07:00
Craig Earls
fc2700daa9
Merge branch 'master' into ledger-mode-bug-1063-auto-refresh-reports
2014-07-12 21:35:55 -07:00
Craig Earls
19adbf0400
Code cleanup
2014-07-12 21:34:35 -07:00
Steve Purcell
54d31a6e72
Merge pull request #309 from holomorph/master
...
use inherits for related faces that are the same
2014-07-12 10:50:38 +01:00
Mark Oteiza
66e7d3d00c
ledger-fonts.el: untabify
2014-07-12 04:57:20 -04:00
Mark Oteiza
36526417d3
use inherits for related faces that are the same
2014-07-12 04:41:23 -04:00
Craig Earls
ed692ee9a8
Merge pull request #308 from vanicat/t/dont-use-flatten
...
Thanks for catching this. I wonder why they took it out? This is much less readable than 'flatten'.
2014-07-09 06:29:17 -07:00
Rémi Vanicat
4a71dc05e6
ledger-reconcile.el: don't use flatten
...
The flatten function is not part of Emacs, so better not use it.
2014-07-09 14:34:46 +02:00
Craig Earls
8efc3e3795
Merge branch 'ledger-mode-bbug-875-configurable-reconcile-line'
2014-07-03 21:50:33 -07:00
Craig Earls
0c8055a528
Finished configurable reconcile format line.
2014-07-03 21:49:48 -07:00
Craig Earls
86a191e6b9
Merge pull request #307 from redstreet/master
...
Updated out of date value expression section in the documentation.
2014-07-03 19:13:58 -07:00
Redstreet
c5980f7491
Fix to 90519fc6e132bd (moved paragraph to end of section).
2014-07-03 14:42:54 -07:00
Redstreet
ba10ebbe73
Updated out of date value expression section in the documentation.
2014-07-03 14:24:39 -07:00
Craig Earls
fad7e307e7
ledger-reconcile-compile-format-string returns a lambda that is used to format the posting data
2014-07-02 20:50:47 -07:00
Craig Earls
ad31fb580a
Refactor code to pull posting format into separate defun. Added reconcile buffer header and line configuration defcustom.
2014-07-02 02:48:08 -07:00
Martin Michlmayr
746ca1fe6d
Unify debugging categories
...
Debugging categories follow the filename, which in this case is singular
(rather than plural) "account" and "amount".
2014-07-01 14:14:23 -04:00
Craig Earls
1c6e7f410b
Fix bug 1051 ledger-posting-amount-face doesn't work
2014-06-30 20:40:28 -07:00
Martin Michlmayr
e7ed889872
Add regression test for commit de17ccf1
...
Add regression test for commit de17ccf1 (" When a status flag (! or *) is
explicitly specified for an individual…")
2014-06-30 19:41:38 -04:00
Martin Michlmayr
8838b468df
Format commands properly
2014-06-30 19:19:49 -04:00
Martin Michlmayr
cbdcf27605
Typo fix
2014-06-30 19:16:20 -04:00
Martin Michlmayr
b1a6d2ce16
Document --values
2014-06-30 19:15:35 -04:00
Martin Michlmayr
3bf82068b4
Document --unrealized
2014-06-30 19:10:36 -04:00
John Wiegley
2634013884
Merge pull request #306 from maxsatula/status-behavior
...
Status (cleared/pending/uncleared) processing behavior
2014-06-30 11:15:06 -08:00
Max Satula
de17ccf1f4
When a status flag (! or *) is explicitly specified for an individual posting, it always has a priority over entire transaction status.
2014-06-30 13:39:22 -04:00
Craig Earls
add716f776
ledger reconcile will recommend the account in the posting, even if point isn't in it.
2014-06-29 19:44:02 -07:00
Craig Earls
838625f8a3
ensures that account with spaces in the names are correctly rested by ledger-context
2014-06-29 19:40:20 -07:00
Craig Earls
2d9cdc6bc8
context was not handling decimal-comma properly.
2014-06-29 11:00:33 -07:00
Craig Earls
0b8e79ec8b
ledger-reconcile clean byte-compile
2014-06-28 14:04:57 -07:00
Craig Earls
9f0873564e
ledger-complete clean byte compile
2014-06-28 13:55:55 -07:00
Craig Earls
db73e7af9e
Fix Bug 1057: Emacs output does not escape special characters.
2014-06-26 20:52:50 -07:00
Craig Earls
3a2eb94bef
Fix bug 1052 ledger-mode mangles transactions with tabs.
2014-06-25 20:50:07 -07:00
Craig Earls
10bdcbb876
Merge pull request #301 from csrhodes/master
...
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.
2014-06-25 20:04:02 -07:00
Craig Earls
8afc183730
Fix bug 1059, ledger mode deletes character if a posting is cleared but there are less that four space between the account and the amount.
2014-06-24 20:48:20 -07:00
Craig Earls
3b20d9a11f
Merge pull request #304 from thdox/save-in-reconcile-buffer
...
Restore C-x C-s keyboard shortcut in reconcile buffer
2014-06-22 08:27:23 -07:00
Martin Michlmayr
d95d517f9c
Merge pull request #302 from thdox/bash-completion
...
Add latest contributed options to bash completion
2014-06-22 10:41:39 -04:00
thdox
ecbf5a0ba3
Restore --raw that I erroneously deleted
2014-06-22 16:17:59 +02:00
Martin Michlmayr
bffca0d7cc
Merge pull request #303 from thdox/fix-typo-documentation
...
Fix minor typo
2014-06-22 10:12:36 -04:00
thdox
5cccadd070
Was introduced with commit 73f336a, which removed a functionality from
...
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.
2014-06-22 16:08:00 +02:00
thdox
b9781d3156
Fix minor typo
2014-06-22 15:49:21 +02:00
thdox
98243ab086
Add latest contributed options to bash completion
2014-06-22 15:35:21 +02:00