ledger/test/baseline/opt-prepend-format.test
Michael Budde 6b998aee10 Add support for --prepend-format in accounts command
Add support for the `--prepend-format` and `--prepend-width` options in
the `accounts` command.
2018-01-25 19:27:24 +01:00

22 lines
811 B
Text

2007/02/02 RD VMMXX
Assets:Investments:Vanguard:VMMXX 0.350 VMMXX @ $1.00
Income:Dividends:Vanguard:VMMXX $-0.35
test bal --prepend-format "%(account_base)"
VMMXX 0.350 VMMXX Assets:Investments:Vanguard:VMMXX
VMMXX $-0.35 Income:Dividends:Vanguard:VMMXX
--------------------
$-0.35
0.350 VMMXX
end test
test reg --prepend-format "%(account_base)"
VMMXX07-Feb-02 RD VMMXX As:Inves:Vanguar:VMMXX 0.350 VMMXX 0.350 VMMXX
VMMXX In:Divid:Vanguar:VMMXX $-0.35 $-0.35
0.350 VMMXX
end test
test accounts --prepend-format "%(account_base) "
VMMXX Assets:Investments:Vanguard:VMMXX
VMMXX Income:Dividends:Vanguard:VMMXX
end test