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
John Wiegley
267b2ba5d8
Made commodity reduction during parsing consistent
2009-02-24 02:40:28 -04:00
John Wiegley
2422838005
Restored the price conversion text directive (C)
2009-02-24 02:34:48 -04:00
John Wiegley
625b94cf04
Switched from using POST_AUTO to ITEM_GENERATED
2009-02-24 02:23:20 -04:00
John Wiegley
cb751913ef
Fixed a minor bug in handling of automated xacts
...
There was a if statement with an inverse boolean meaning, which caused
some automated transaction postings to have a null amount.
2009-02-23 19:20:57 -04:00
John Wiegley
944c63e6f2
The Great Renaming, Part II
...
The last commit did not contain the majority of changes because of a
slight mishap. This contains the real changeset.
2009-02-23 19:07:30 -04:00
John Wiegley
057506ab6d
The Great Renaming
...
To better follow naming standards used in the accounting community --
particularly those relating to double-entry accounting -- the following
technical terms in Ledger have been changed:
- what was "entry" is now "transaction"
- what was "transaction" is now "posting"
Correspondingly, the shorthand names "entry" and "xact" have been
changed to "xact" and "post", respectively.
2009-02-23 18:45:41 -04:00
John Wiegley
310e339464
Added several more option baseline tests
2009-02-23 17:40:40 -04:00
John Wiegley
a0a014b334
Allow $FILE in regression test error output match
2009-02-23 17:39:52 -04:00
John Wiegley
72a5e972c7
Always free memory at the end of a run
...
It turns out this is needed in order to properly close the pager
subprocess.
2009-02-23 17:28:13 -04:00
John Wiegley
4a43c22172
Restore the --gain option, for showing gain/loss
2009-02-23 15:47:09 -04:00
John Wiegley
f440fcd8b0
rounded() and quantity() act on the first value
2009-02-23 15:44:19 -04:00
John Wiegley
371fc62eec
If interactive_t wants S, also accept bare values
2009-02-23 15:42:20 -04:00
John Wiegley
17fe4b752c
If handle_value sees a sequence, make it compound
2009-02-23 15:39:18 -04:00
John Wiegley
a576842865
Added --revalued-total option, used by --gain
...
This option sets the total by which revalued transactions are
determined. Only needed if the display total is not appropriate.
2009-02-23 15:37:39 -04:00
John Wiegley
aff7b56673
Added get_at and is_seq valexpr functions
...
These are for dealing with sequences.
2009-02-23 15:27:06 -04:00
John Wiegley
1406cbe853
Changed the constness of interactive_t::get<T>
2009-02-23 15:22:05 -04:00
John Wiegley
49d79045a5
Removed unused member keep_details_t::keep_base
2009-02-23 15:15:33 -04:00
John Wiegley
e919f53c99
Renamed O_COMMA to O_CONS, and changed semantics
...
In the old scheme, nested values would simply flatten and concatenate,
so that '((1, 2), 3) = (1, 2, 3)'. Now sublists are preserved, so that
sequences may be passed as arguments to functions.
2009-02-23 15:04:07 -04:00
John Wiegley
9a44b8a547
Allow sequences to be compared to 0
...
It is true if every member of the sequence passes the test.
2009-02-23 14:49:03 -04:00
John Wiegley
f96daf5fde
Corrects to code that compares balances to zero
2009-02-23 14:46:30 -04:00
John Wiegley
4ab50df564
Don't report collapsed subtotal if no xacts seen
2009-02-23 14:44:10 -04:00
John Wiegley
7b7814d466
Expr (a,b)+(c,d) is now equivalent to (a+c,b+d)
2009-02-23 14:41:11 -04:00
John Wiegley
27fc3a3d43
A sequence is false if all it contains is false
2009-02-23 14:38:36 -04:00
Mark Carter
6e4581690d
Added new contrib/getquote-uk.py script
2009-02-23 14:35:04 -04:00
John Wiegley
bc1a196f02
Added non-const value_t::begin and value_t::end
2009-02-23 14:25:09 -04:00
John Wiegley
30005d1ba5
Push a sequence onto a sequence only appends now
...
Previously, it would merge sequences A and B.
2009-02-23 14:14:22 -04:00
John Wiegley
08559bff34
Moved scripts from contrib/scripts/ into contrib/
2009-02-23 14:04:50 -04:00
John Wiegley
a61901a092
Added baseline test for --revalued-only
2009-02-23 02:28:26 -04:00
John Wiegley
9f53efbf5f
Many fixes to both --market and --exchange
2009-02-23 01:51:23 -04:00
John Wiegley
de6de07bac
Many fixes to --market and --exchange
...
Also, --exchange now accepted multiple, comma-separated commodities.
2009-02-22 22:23:02 -04:00
John Wiegley
ea418c7fbc
Allow date and datetime values to inter-convert
2009-02-22 22:22:54 -04:00