Do not adjust display precision when parsing a pricing entry.
Fixes: 7E5D2A6C-A15F-4BC8-A851-04A48E3E30F4
This commit is contained in:
parent
3c6fd0f804
commit
cc7f3ec664
2 changed files with 11 additions and 9 deletions
17
TODO
17
TODO
|
|
@ -6,14 +6,6 @@ LEDGER -*- mode: org; fill-column: 78 -*-
|
||||||
#+TAGS: EMACS(e) FEATURE(f) DOCS(d) WEBSITE(w) BUILD(b)
|
#+TAGS: EMACS(e) FEATURE(f) DOCS(d) WEBSITE(w) BUILD(b)
|
||||||
#+CATEGORY: Ledger
|
#+CATEGORY: Ledger
|
||||||
|
|
||||||
* TODO [#B] Do not adjust display precision when parsing a pricing entry
|
|
||||||
:PROPERTIES:
|
|
||||||
:Submitter: John Wiegley <johnw@newartisans.com>
|
|
||||||
:Version: 2.6.0.90
|
|
||||||
:Ticket: 206
|
|
||||||
:ID: 7E5D2A6C-A15F-4BC8-A851-04A48E3E30F4
|
|
||||||
:END:
|
|
||||||
[2008-07-28 Mon]
|
|
||||||
* DONE [#B] -e doesn't seem to work for providing an end date
|
* DONE [#B] -e doesn't seem to work for providing an end date
|
||||||
- State "DONE" [2008-04-04 Fri 14:34] \\
|
- State "DONE" [2008-04-04 Fri 14:34] \\
|
||||||
There was a problem with the -e date parsing. I now interpret "-e june"
|
There was a problem with the -e date parsing. I now interpret "-e june"
|
||||||
|
|
@ -284,6 +276,15 @@ ledger -f my.ledger -b 2008/03/01 -e 2008/04/01 print
|
||||||
:ID: A95B2E0F-095D-4314-BC4D-3CEC42203FB1
|
:ID: A95B2E0F-095D-4314-BC4D-3CEC42203FB1
|
||||||
:END:
|
:END:
|
||||||
[2008-04-06 Sun]
|
[2008-04-06 Sun]
|
||||||
|
* DONE [#B] Do not adjust display precision when parsing a pricing entry
|
||||||
|
- State "DONE" [2008-09-17 Wed 05:12]
|
||||||
|
:PROPERTIES:
|
||||||
|
:Submitter: John Wiegley <johnw@newartisans.com>
|
||||||
|
:Version: 2.6.0.90
|
||||||
|
:Ticket: 206
|
||||||
|
:ID: 7E5D2A6C-A15F-4BC8-A851-04A48E3E30F4
|
||||||
|
:END:
|
||||||
|
[2008-07-28 Mon]
|
||||||
* DONE [#C] Entry command doesn't match debit account when description is unmatched
|
* DONE [#C] Entry command doesn't match debit account when description is unmatched
|
||||||
- State "DONE" [2008-07-20 Sun 20:32]
|
- State "DONE" [2008-07-20 Sun 20:32]
|
||||||
I think I've isolated a bug with the entry command where I get "Equity"
|
I think I've isolated a bug with the entry command where I get "Equity"
|
||||||
|
|
|
||||||
|
|
@ -732,7 +732,8 @@ unsigned int textual_parser_t::parse(std::istream& in,
|
||||||
|
|
||||||
std::string symbol;
|
std::string symbol;
|
||||||
parse_symbol(symbol_and_price, symbol);
|
parse_symbol(symbol_and_price, symbol);
|
||||||
amount_t price(symbol_and_price);
|
amount_t price;
|
||||||
|
price.parse(symbol_and_price, AMOUNT_PARSE_NO_MIGRATE);
|
||||||
|
|
||||||
if (commodity_t * commodity = commodity_t::find_or_create(symbol))
|
if (commodity_t * commodity = commodity_t::find_or_create(symbol))
|
||||||
commodity->add_price(datetime, price);
|
commodity->add_price(datetime, price);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue