File: opt-prices-format.test

package info (click to toggle)
ledger 3.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,964 kB
  • sloc: cpp: 39,393; python: 4,476; perl: 1,309; sh: 477; lisp: 435; yacc: 103; makefile: 58
file content (19 lines) | stat: -rw-r--r-- 461 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
D $1,000.00

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

test prices --prices-format='%(datetime) %(scrub(display_amount))\n'
2009/01/01 13:30:00 $10.00
2009/01/01 14:30:00 $20.00
2009/01/01 15:30:00 $30.00
2009/01/01 16:30:00 $40.00
2009/02/01 17:30:00 $50.00
end test