John Wiegley
74e569e220
Added a truncated() method for amounts and values
...
When an amount is truncated, it drops all of the extra precision and
becomes exactly the value would have seen were it printed.
2009-02-26 00:10:08 -04:00
John Wiegley
247cf58bfa
Allow sequences to be rounded and unrounded
...
The result is that every member of the sequence has the given operation
applied.
2009-02-25 23:42:31 -04:00
John Wiegley
55a6d588ff
Allow uncommoditized amounts to +/- with an amount
...
Thus, you can say "$100 + 10" to increase it by $10.
2009-02-25 23:40:15 -04:00
Drew Raines
7f37d7edcc
Added ignoring of build products back to .gitignore.
2009-02-25 23:18:43 -04:00
Eugene Morozov
0667bc1a70
Fix for sensitive compilation environments.
2009-02-25 23:12:38 -04:00
John Wiegley
7d0491c5fe
Fixes to tools/proof
2009-02-25 20:31:42 -04:00
John Wiegley
9db6e8cdbe
Added rm -fr test/python to distclean-local hook
2009-02-25 20:02:53 -04:00
John Wiegley
7e43b93782
Changed --exchange's short option from -x to -X
2009-02-25 13:52:17 -04:00
John Wiegley
f33d3f97f6
Made a dependency ref to UnitTest.py explicit
2009-02-25 03:53:46 -04:00
John Wiegley
238bd7f8a5
Marked all strings needing internationalization
...
These strings are now collected automagically in the file po/ledger.pot.
If you'd like to produce a translation, just run this command after
building Ledger:
msginit -l LOCALE -o LANG.po -i po/ledger.pot
Where LOCALE is a string like de or en_GB, and LANG is a short
descriptive word for your language.
Then send me this .po file so I can commit it to the Ledger sources
(alternatively, you could maintain the file in a fork on GitHub), and
setup the build script to format and install your new message catalog
during a "make install".
2009-02-25 03:51:42 -04:00
John Wiegley
f745767fa6
Removed reference to test/__init__.py
2009-02-25 02:43:35 -04:00
John Wiegley
cdaba43fa7
Fixed the --gain option for balance reports
2009-02-25 02:07:57 -04:00
John Wiegley
838338e316
More fixes to tools/regtest
2009-02-25 01:41:23 -04:00
John Wiegley
ac8e27a4b8
Added a new --depth option
2009-02-25 01:15:53 -04:00
John Wiegley
76be843201
A slight improvement to the Python bindings
2009-02-24 22:13:46 -04:00
John Wiegley
a364b1d4ac
Restored the functionality of tools/regtest
2009-02-24 22:11:59 -04:00
John Wiegley
5a194cbdf4
Allow value expressions access to session options
2009-02-24 22:10:41 -04:00
John Wiegley
20077db3c8
Fixed the pager test to be more portable
2009-02-24 21:43:04 -04:00
John Wiegley
23380aad04
Change behavior if "entry" ends with null account
...
A final null account (no amount specified) is now taken to be the "from"
account, not another "to" account.
2009-02-24 21:13:29 -04:00
John Wiegley
a8a87ab908
Added "date" valexpr to session, for bal -V
2009-02-24 21:07:05 -04:00
John Wiegley
6d880c2728
Removed some dead code
2009-02-24 20:25:49 -04:00
John Wiegley
45da776f96
Set the scope context in Scope.__getattr__(attr)
2009-02-24 20:01:46 -04:00
John Wiegley
0814c5a23f
Added a new level of Python integration
2009-02-24 19:48:14 -04:00
John Wiegley
3598abf9d2
The ignore file only ignores autoconf products now
2009-02-24 19:34:12 -04:00
John Wiegley
e012917ceb
Created some new Python scripts under python/
2009-02-24 19:33:03 -04:00
John Wiegley
153563d165
Don't drop arguments in tools/myacrpep
2009-02-24 17:43:25 -04:00
Jesse Alama
29c4647eaf
Use vector notation for the backspace key.
...
* lisp/ledger.el: Use vector notation for the backspace key.
Say "[backspace]" rather than "(kbd "<backspace>")".
2009-02-24 16:12:18 -04:00
Jesse Alama
738d9e603b
When starting ledger-report, print a help message.
...
* lisp/ledger.el: When starting ledger-report, print a help message.
2009-02-24 16:12:18 -04:00
Jesse Alama
50ad2cd3a5
Make backspace scroll down in ledger-report buffers.
...
* lisp/ledger.el: Make backspace scroll down in ledger-report buffers.
2009-02-24 16:12:18 -04:00
Jesse Alama
119d86d31b
Make ledger-report buffers non-editable.
...
* lisp/ledger.el: Make ledger-report buffers non-editable.
Intuitively, a ledger-report buffer is a report -- the result of
applying a function to your ledger data. Thus, the buffers created by
ledger-reports aren't editable text; to "change" the ledger-report
buffer, change the ledger data from which the report is derived.
This commit alters ledger-report and ledger-report-redo.
2009-02-24 16:12:18 -04:00
Jesse Alama
ace68028f4
Indicate what the report name is in report buffers
...
* lisp/ledger.el: Indicate what the report name is in report buffers
2009-02-24 16:12:18 -04:00
John Wiegley
1799ed3a2a
Moved python/*.cc files into src/
...
This is because soon, I intend to have real Python source files in
python/.
2009-02-24 16:08:49 -04:00
John Wiegley
5ad9bc3951
Propagate commodity flags in costs sometimes
...
If a commodity has never been seen before, and it is used in a cost
amount, remember the display flags.
2009-02-24 15:18:57 -04:00
John Wiegley
f13709f71a
Be smarter about printing uncommoditized amounts
2009-02-24 15:13:21 -04:00
John Wiegley
1ecf62ce25
Output "@ AMOUNT" cost in the print report
2009-02-24 15:06:43 -04:00
John Wiegley
c4207a79d7
Allow any two amount values to be divided
2009-02-24 14:55:05 -04:00
John Wiegley
d396fa5145
Fixed an alignment bug in value context display
2009-02-24 14:53:33 -04:00
John Wiegley
cca6c204dd
tools/myacprep symlinks TAGS and ledger into src/
2009-02-24 14:36:52 -04:00
John Wiegley
b72568270b
Added a new regression test for 13965214
2009-02-24 14:34:22 -04:00
John Wiegley
38dd1b8655
Fixed an issue involving costs and reduced values
2009-02-24 13:29:08 -04:00
John Wiegley
d525db35d8
Restored the use of Python unit tests
2009-02-24 13:16:28 -04:00
John Wiegley
07fcc3a08a
Build Python module using automake, not setup.py
2009-02-24 12:48:11 -04:00
John Wiegley
68d41d7dc0
Added some new valexpr functions to the man page
2009-02-24 12:43:19 -04:00
John Wiegley
9f9381db64
Restored the py_amount and py_balance mappings
2009-02-24 12:41:52 -04:00
John Wiegley
ba1f1fe70e
Renamed a regression test, for consistency's sake
2009-02-24 12:29:11 -04:00
John Wiegley
d84638045a
Added note to docs about "primary" commodities
...
Whenever a commodity is exchanged for another in a posting, one of the
two is considered "primary", and the other secondary. Primariness of a
commodity is remembered, since the --market option only renders balances
into secondary commodities, never primaries. To render primaries, use
the --exchange=COMMODITY option.
In all of the following examples, the P commodity is considered primary
and the S is secondary (the P at the beginning of the line indicates a
price-setting directive):
2009/01/01 Sample 1a
Assets:Brokerage:Stocks 100 S
Assets:Brokerage:Cash -100 P
P 2009/01/15 00:00:00 S 2 P
2009/02/01 Sample 2a
Assets:Brokerage:Stocks 100 S @ 1 P
Assets:Brokerage:Cash
P 2009/02/01 00:00:00 S 4 P
2009/03/01 Sample 3a
Assets:Brokerage:Stocks 100 S @@ 100 P
Assets:Brokerage:Cash
P 2009/03/01 00:00:00 S 8 P
2009/04/01 Sample 4a
Assets:Brokerage:Cash 100 P
Assets:Brokerage:Stocks -100 S {1 P}
P 2009/04/01 00:00:00 S 16 P
2009-02-24 03:56:27 -04:00
John Wiegley
ecf03b96a7
Removed the largely useless --performance option
2009-02-24 03:47:23 -04:00
John Wiegley
48a8bbc0ee
Added several baseline tests regarding lot details
2009-02-24 03:42:25 -04:00
John Wiegley
79c7478278
Fixes to the way annotated prices are displayed
2009-02-24 03:40:57 -04:00
John Wiegley
eb364f4183
Improved the way that entries are balanced
2009-02-24 03:03:04 -04:00