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
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
John Wiegley
57491091b0
Added a new entry to the drewr.dat file
2009-06-02 19:30:59 +01:00
John Wiegley
9b6c946ea2
Simplified a call to (error) in ledger.el
2009-06-02 19:28:36 +01:00
John Wiegley
c79fd9e72d
Added new debug option --options
...
This reports which options are in place before invoking a command, and
where exactly each option value came from.
2009-06-02 19:14:46 +01:00
John Wiegley
e2092d07d8
Extended Makefile fix, to accomodate newest automake
2009-06-02 17:53:55 +01:00
John Wiegley
0e9f782a05
Added % suffix operator, as in "$1.00 * 10%"
2009-05-26 23:45:44 -05:00
John Wiegley
d2062bb54c
Temporarily disable the opt-forecast-while test
2009-05-26 23:43:47 -05:00
Andrew Potter
684a9c6cbf
Fix pointer const-ness in parse_tags()
2009-05-26 22:47:07 -05:00
John Wiegley
98e6075af8
acprep upload was deleting the file after upload
2009-03-31 16:31:18 -04:00
John Wiegley
e282d55d63
Johann Klähn: Updated ledger.vim to 0.0.5
2009-03-26 16:38:41 -04:00
John Wiegley
ca42f2b9a7
Johann Klähn: Added metadata support for ledger.vim
2009-03-24 18:07:56 -04:00
John Wiegley
025af3c189
Corrected a syntax error in a gettext usage
2009-03-24 17:35:31 -04:00
John Wiegley
0918f9d4f5
Don't instantiate duration_t using default ctor
2009-03-23 19:21:27 -04:00
John Wiegley
8b175c7d6d
Removed old ledger disk images when uploading
2009-03-23 17:21:53 -04:00
John Wiegley
2ec34b280f
Fixes to the final binary .dmg creation
2009-03-23 17:15:07 -04:00
John Wiegley
9b22251ddd
Recursively translate library names for bindmg
2009-03-23 16:39:45 -04:00
John Wiegley
dda7c3a58a
Rewrote the date interval parser/stepper
...
The new implementation uses boost::gregorian::date_duration objects,
rather than manually stepping.
2009-03-23 01:22:26 -04:00
John Wiegley
aba7a39e87
Added bindmg and upload phases, for my own use
2009-03-22 20:07:15 -04:00
John Wiegley
ed8f5e04c0
Changed "dependencies" phase for CentOS systems
...
It's still not complete yet, because MPFR isn't part of the CentOS
package set.
2009-03-19 03:10:29 -04:00
John Wiegley
d0ea10f9a7
Rewrote the interval_t class
...
The purpose of this rewrite is to greatly simplify the code that walks
through time periods, toward opening up the possibility in future of
allowing exclusions and logically combined periods, such as "weekly
except weekends". The new code is much simpler to use, as well as
simpler internally, and yet is more robust at the same time.
2009-03-16 04:02:56 -04:00
John Wiegley
f1523b5464
The new code is working now.
2009-03-16 03:44:27 -04:00
John Wiegley
f2c60057ef
Restored all the old code, though not tested yet
2009-03-16 00:09:39 -04:00
John Wiegley
585b3a246d
Added feature to "align" the interval's start date
2009-03-15 23:51:46 -04:00
John Wiegley
a05353e269
First iteration of the new date_interval_t rewrite
2009-03-15 22:39:44 -04:00
John Wiegley
1889d449b6
Added a missing * operation
2009-03-15 22:39:44 -04:00
John Wiegley
8beed3f8bd
Removed an unnecessary member variable
2009-03-15 22:39:44 -04:00
John Wiegley
0de43f483b
Started breaking up interval_t into range_t
2009-03-15 22:39:44 -04:00
John Wiegley
63080a7275
Added two new regression tests
...
These prove Simon's recent balance report bugs.
2009-03-15 22:35:06 -04:00
John Wiegley
16c77af9c9
If 2+ child accounts are shown, show the parent
...
Also, also show a final balance if there are multiple accounts
displayed, even if that final balance is zero.
2009-03-15 21:31:06 -04:00
John Wiegley
d0963ece02
If a balance report is multi-lined, print a total
2009-03-15 04:14:03 -04:00
John Wiegley
dbcaa35d4b
Fixed a bug in the man page
2009-03-15 04:05:06 -04:00
John Wiegley
248a8f5180
Do not set ARCHFLAGS by default for Darwin
...
I'm not using these yet, since it's impossible to build a fully
universal binary on my machine due to the way GMP is built by MacPorts.
2009-03-11 19:32:22 -04:00
John Wiegley
f2eb941ab6
Fixed the acprep distcheck build
2009-03-11 19:15:16 -04:00
John Wiegley
97784f72a2
Moved a variable initialization
2009-03-11 19:08:52 -04:00
John Wiegley
93e9b2b7af
Ensure that ledger-proof exists when needed
2009-03-11 06:26:41 -04:00
John Wiegley
273a1084ba
Added a buildlibs phase, for rebuilding Boost
...
The advantage here is that it setups up the compiler path correctly.
2009-03-11 03:21:01 -04:00