Restored --prices-format options
This commit is contained in:
parent
1fd4387b67
commit
8dbf458e14
2 changed files with 21 additions and 1 deletions
|
|
@ -621,7 +621,8 @@ public:
|
||||||
|
|
||||||
OPTION__(report_t, prices_format_, CTOR(report_t, prices_format_) {
|
OPTION__(report_t, prices_format_, CTOR(report_t, prices_format_) {
|
||||||
on(none,
|
on(none,
|
||||||
"%-.9(date) %-8(account) %12(scrub(display_amount))\n");
|
"%-.9(date) %-8(account) %(justify(scrub(display_amount), 12, "
|
||||||
|
" 2 + 9 + 8 + 12, true, color))\n");
|
||||||
});
|
});
|
||||||
|
|
||||||
OPTION__(report_t, pricesdb_format_, CTOR(report_t, pricesdb_format_) {
|
OPTION__(report_t, pricesdb_format_, CTOR(report_t, pricesdb_format_) {
|
||||||
|
|
|
||||||
19
test/baseline/opt-prices-format.test
Normal file
19
test/baseline/opt-prices-format.test
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
prices --prices-format='%(datetime) %(scrub(display_amount))\n'
|
||||||
|
<<<
|
||||||
|
P 2009/01/01 13:30:00 AAPL $10.00
|
||||||
|
P 2009/01/01 14:30:00 AAPL $20.00
|
||||||
|
P 2009/01/01 15:30:00 AAPL $30.00
|
||||||
|
P 2009/01/01 16:30:00 AAPL $40.00
|
||||||
|
P 2009/02/01 17:30:00 AAPL $50.00
|
||||||
|
|
||||||
|
2009/03/01 Purchase
|
||||||
|
Assets:Brokerage 100 AAPL
|
||||||
|
Income
|
||||||
|
>>>1
|
||||||
|
09-Jan-01 13:30:00 $10.00
|
||||||
|
09-Jan-01 14:30:00 $20.00
|
||||||
|
09-Jan-01 15:30:00 $30.00
|
||||||
|
09-Jan-01 16:30:00 $40.00
|
||||||
|
09-Feb-01 17:30:00 $50.00
|
||||||
|
>>>2
|
||||||
|
=== 0
|
||||||
Loading…
Add table
Reference in a new issue