Commit graph

2110 commits

Author SHA1 Message Date
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
John Wiegley
6b77e6868c Execution errors in acprep now stop the build 2009-03-10 19:39:44 -04:00
John Wiegley
1b4ce1b0b9 Added make rule to build mondo.dat 2009-03-10 19:30:13 -04:00
John Wiegley
f20a644c98 Fixed how the environment is setup in acprep 2009-03-10 18:51:59 -04:00
John Wiegley
78b303515e Re-enabled use of _GLIBCXX_DEBUG on my machine 2009-03-10 18:41:39 -04:00
John Wiegley
7b829af6ae Removed default optimization flag -march=native 2009-03-10 17:11:39 -04:00
John Wiegley
110f0b8023 Enabled use of pre-compiled headers by default 2009-03-10 17:02:03 -04:00
John Wiegley
4f62bb17c1 Refactored some code in acprep 2009-03-10 05:01:25 -04:00