Commit graph

2151 commits

Author SHA1 Message Date
John Wiegley
189bbd1546 Added baseline test for --limit 2009-06-19 20:40:15 +01:00
John Wiegley
dabbd2c974 Fixes to the 'xact' command (used to be 'entry') 2009-06-19 00:00:57 +01:00
John Wiegley
83c93fdb73 Commented out an internal-only option 2009-06-18 18:58:37 +01:00
John Wiegley
269c0ccb7c Added a code comment 2009-06-18 18:55:42 +01:00
John Wiegley
86dfc1e0be The -X option now accepts price settings
For example, if you had 100 AU (onces of gold) and wanted to report it
in dollars, but at a price of $997 per ounce, you could now easily say:

  ledger bal -X '$,AU=$997'
2009-06-18 18:50:49 +01:00
John Wiegley
1dc21c2d34 Added baseline test for --seed 2009-06-18 18:42:48 +01:00
John Wiegley
56555f3870 Added baseline tests for --related, --related-all 2009-06-18 16:20:22 +01:00
John Wiegley
af8eeb34db Added baseline test for --quantity 2009-06-18 16:18:35 +01:00
John Wiegley
6dd362dfde Added baseline tests for --print,register-format 2009-06-18 16:12:27 +01:00
John Wiegley
4253c2a35d Allow uncommoditized amounts to be used as costs 2009-06-18 16:10:08 +01:00
John Wiegley
8d97adec7b Restored --plot-amount-format, --plot-total-format 2009-06-18 16:08:43 +01:00
John Wiegley
8dbf458e14 Restored --prices-format options 2009-06-18 01:50:06 +01:00
John Wiegley
1fd4387b67 Restored pricesdb command and --pricesdb-format option 2009-06-18 01:49:49 +01:00
John Wiegley
47d237e18b Restored --input-date-format option 2009-06-18 01:36:24 +01:00
John Wiegley
141e60c7a7 Added baseline test for --real 2009-06-18 01:26:08 +01:00
John Wiegley
95be19dd28 Added baseline test for --period 2009-06-18 01:24:05 +01:00
John Wiegley
8121e0b178 Added regression test for period range fix 2009-06-18 01:23:06 +01:00
John Wiegley
ed9735f66d Correctly parse the range of period "june 2008" 2009-06-18 00:50:27 +01:00
John Wiegley
a64c249efb Allow --period flag to specify a report range 2009-06-17 17:15:29 +01:00
John Wiegley
de50277abe Merge commit 'chrismgray/master' into next 2009-06-17 16:56:11 +01:00
John Wiegley
6374b308b2 Merge commit 'kljohann/master' into next 2009-06-17 16:55:42 +01:00
John Wiegley
cb2e596725 The --revalued option now honors the -e terminus 2009-06-17 16:54:02 +01:00
Chris Gray
f0a83b35f0 Change reconcile-mode to look for either <stdin> or /dev/stdin 2009-06-17 14:07:38 +02:00
Johann Klähn
9701548f7e vim: highlight account names
This helps to avoid confusion when an account is not
seperated from the amount by two spaces or a tab but only by one space.
In these cases the amount will now be highlighted
as if it belongs to the account name.

Thanks to user 'plaindocs' for reporting this.
2009-06-17 12:40:50 +02:00
John Wiegley
81db8a38fe Fixed some compiler warnings in non-debug mode 2009-06-16 18:50:37 +01:00
John Wiegley
3a926da4cb When --end is used, set a "terminus" date
This means that final balance valuations (with -V or -X) will be done in
terms of the date given to --end, rather than based on the current day.

Fixes 647D5DB9-DBBB-47C8-80CE-F3F70E3B0253
2009-06-16 18:49:27 +01:00
John Wiegley
849e4b2fbb Added test for D943AE0F-44EA-47EE-BA85-AFC513E039EB 2009-06-16 18:29:26 +01:00
John Wiegley
9655f43bed Added test for 5FBF2ED8-EEAA-440E-AED5-67401B107E44 2009-06-16 18:28:05 +01:00
John Wiegley
236f1c6dd2 Simplified ledger-mode's font-lock-regexps 2009-06-16 18:11:36 +01:00
John Wiegley
a6325388f4 Improved how transactions are cleared in Emacs
If C-c C-c is used on a transaction, it now clears or unclears it,
clearing all marks on individual postings when doing so.

Fixes 863C0EE8-C193-46EE-9BAA-3A37DE73E4DB
2009-06-16 18:10:39 +01:00
John Wiegley
94467e5b7f Fixed a problem with accounts and trailing spaces
This issue is caused by having a single space at the end of a posting
that has neither an amount nor a note.

Fixes C523E23F-CFAC-4A53-B0C6-21226640E763
2009-06-16 17:05:28 +01:00
John Wiegley
298a4faef3 Move amount colorization deeper into the core
This is necessary in order to redden negative amounts correctly under
all circumstances, such as component amounts of a multi-commodity
balance.

Fixes 727B2DF8-A2A1-4716-9C15-547F20D5F933
2009-06-16 16:57:10 +01:00
John Wiegley
995c94ef17 Added several new regression tests 2009-06-16 16:43:44 +01:00
John Wiegley
463f741ed2 Allow an amount to be zero, even if cost is non-zero
The only real change is that exchanges of zero-amount will not result in
any exchange at all, just the "motions".

Fixes 6DAB9FE3-1399-4727-9AB1-FE413FB85A03
2009-06-16 16:23:58 +01:00
John Wiegley
3c692a94d4 Fixed a problem in the 'entry' command
It was selecting virtual transactions during auto-posting lookup.

Fixes 793F6BF0-9CDE-4741-967A-2CEA697476B4
2009-06-16 16:22:17 +01:00
John Wiegley
ec9745161e Corrected a minor typo 2009-06-16 15:49:31 +01:00
Johann Klähn
5258105382 ledger.vim: use full width, not only 80 chars
Also add option g:ledger_maxwidth to provide old behaviour
by putting a line like this in .vimrc:
let g:ledger_maxwidth = 80

I think that it would make sense to put all the functions and
everything that has to do with foldtext in ftplugin/ledger.vim

Signed-off-by: John Wiegley <johnw@newartisans.com>
2009-06-16 21:16:31 +08:00
John Wiegley
49f5465adb Temporarily stubbed out an inaccurate assert 2009-06-15 22:55:17 +01:00
Johann Klähn
b96df34d75 ledger.vim: split into multiple files
for better extendability
2009-06-15 23:37:57 +02:00
John Wiegley
e97b59b006 Refinement to display of account balances
Fixes 5A03CFC3-1A76-4F93-A1FE-555F98438C5A
2009-06-15 17:52:52 +01:00
John Wiegley
092bda1435 Don't increase precision so much when dividing
Slow the increase in internal precision when dividing amounts.

Use "--debug amount.convert" if you wish to see this logic in action, if
a case where incorrect rounding is suspected comes up.

Fixes B68FFB0D-A9A0-479C-A6C0-68853F229333
2009-06-15 17:52:38 +01:00
John Wiegley
981dc41eb7 Allow integers to be multiplied with amounts
Fixes other part of 04C5E1CA-1B39-4214-81C7-FD5AA785308F
2009-06-15 17:52:20 +01:00
John Wiegley
d45b35798c Ignore attempts to annotate the null commodity
Fixes 04C5E1CA-1B39-4214-81C7-FD5AA785308F
2009-06-15 17:51:45 +01:00
John Wiegley
c9719006be Minor fix to entry title coloring 2009-06-15 16:38:41 +01:00
John Wiegley
0e64207757 If a posting comment is very short, let it hang
This applies when using the "print" report, or the "comment" variable.
2009-06-14 18:26:26 +01:00
John Wiegley
8747c724f1 Strip annotations before handling bal assignments 2009-06-13 18:04:29 +01:00
John Wiegley
15193ffb3b Added a baseline test for balance assignments 2009-06-13 17:44:12 +01:00
John Wiegley
9c5c1eb776 Renamed the fixated-prices test 2009-06-13 17:42:24 +01:00
Johann Klähn
7c67866b22 ledger.vim: use full width, not only 80 chars
Also add option g:ledger_maxwidth to provide old behaviour
by putting a line like this in .vimrc:
let g:ledger_maxwidth = 80

I think that it would make sense to put all the functions and
everything that has to do with foldtext in ftplugin/ledger.vim
2009-06-12 23:09:55 +02:00
John Wiegley
57491091b0 Added a new entry to the drewr.dat file 2009-06-02 19:30:59 +01:00