diff options
author | John Wiegley <johnw@newartisans.com> | 2008-09-17 05:05:26 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-09-17 05:05:26 -0400 |
commit | 495b64f29646d992deb359c5a5cb7e75e6541a0a (patch) | |
tree | 1b614c97e12a88d5657f755352efd737dca2c74d /textual.cc | |
parent | bd46f5af18349abd4e5419fef3c0f55cfcd969f7 (diff) | |
download | ledger-495b64f29646d992deb359c5a5cb7e75e6541a0a.tar.gz ledger-495b64f29646d992deb359c5a5cb7e75e6541a0a.tar.bz2 ledger-495b64f29646d992deb359c5a5cb7e75e6541a0a.zip |
When automatically associating lot details with a commodity, use only the
price (based on the cost of the transactions), don't automatically use the
date and the entry code -- since most people aren't going to be that specific
at the time of sale, it's causes confusion in certain cases.
Fixes: E87DD3A5-B061-46A0-95E9-9844A6CB0443
Diffstat (limited to 'textual.cc')
-rw-r--r-- | textual.cc | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -270,9 +270,7 @@ transaction_t * parse_transaction(char * line, account_t * account, if (xact->amount.commodity() && ! xact->amount.commodity().annotated) - xact->amount.annotate_commodity(per_unit_cost, - xact->entry ? xact->entry->actual_date() : datetime_t(), - xact->entry ? xact->entry->code : ""); + xact->amount.annotate_commodity(per_unit_cost); DEBUG_PRINT("ledger.textual.parse", "line " << linenum << ": " << "Total cost is " << *xact->cost); |